Generation of a Self Signed Certificate 💡

1 Minutes Jul 2, 2024 72 Words

Generation of a Self Signed Certificate

Generation of a self-signed SSL certificate involves a simple 3-step procedure:

  1. : انشاء server private key
openssl genrsa -out cert.key 2048
  1. : انشاء certificate signing request (CSR)
openssl req -new -key cert.key -out cert.csr
  1. : Sign the certificate using the private key and CSR
openssl x509 -req -days 3650 -in cert.csr -signkey cert.key -out cert.crt

مبروك.. الان اصبح لديك self-signed SSL certificate صالح لمدة عشر سنوات