cmd
cd
C:\Server\bin\Apache24\bin\
set
OPENSSL_CONF=C:\Server\bin\Apache24\conf\openssl.cnf
openssl.exe genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -out localhost.key
openssl.exe req -new -key localhost.key -out localhost.csr
openssl.exe x509 -req -days 365 -
in
localhost.csr -signkey localhost.key -out localhost.crt