Start the command prompt (cmd), after that go to the directory that include 'openssl.exe'...
cd /d C:\www\openssl\bin
Generate the certificate signing request that is server.csr and also private key which is privkey.pem.
> openssl req -new -out server.csr
Now delete the pass-phrase from privkey.pem which is private key, for creating a server.key.
> openssl rsa -in privkey.pem -out server.key
Design a self-signed certificate with the name server.crt which is public key.
> openssl x509 -in server.csr -out server.crt -req -signkey server.key -days 365
After both the creation, create the default storage place public key file server.crt, specified within ssl.conf.
> mkdir C:\www\Apache2\conf\ssl.crt
After the creation of default location for public does the same for private key it should also specified within ssl.conf.
> mkdir C:\www\Apache2\conf\ssl.key
Then relocate this both public and private key to the proper location.
> move server.crt C:\www\Apache2\conf\ssl.crt > move server.key C:\www\Apache2\conf\ssl.key
Erase file '.rnd' which includes vital information and could be used to reconstruct the keys.
> del .rnd
And preserve server.csr if you map on self-signing more keys and you want the power to match up accurately, or else, remove it and the old public key with the passphrase certification.
> del privkey.pem > del server.csr
Bookmarks