http://rubayathasan.com/tutorial/apache-ssl-on-windows
Cmd (not ps).
- set OPENSSL_CONF=C:\Programs\Apache\httpd\Archive\openssl.cnf.
2. openssl req -new -out server.csrPassphrase is only required in next step, not in httpd.
Debug
openssl req -in server.csr -text -noout3. openssl rsa -in privkey.pem -out server.key- set RANDFILE=.rnd.
5. openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 365Check
openssl x509 -in certificate.crt -text -nooutThis generates V1 type certs, the extensions like SANs are not carried over.
openssl req -new -x509 -newkey rsa:2048 -sha256 -nodes -keyout server.key -days <days> -out server.crt -config cert.cnfTested with windows.
Openssl from httpd.
Generates V3 type certs.
Updated:
2026 Aug 19

