Generation of a Self Signed Certificate
Generation of a self-signed SSL certificate involves a simple 3-step procedure:
- : انشاء server private key
openssl genrsa -out cert.key 2048
- : انشاء certificate signing request (CSR)
openssl req -new -key cert.key -out cert.csr
- : 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 صالح لمدة عشر سنوات