![]() ![]() VkZqGbLT4NjoB2Yp7zi2qZ59qGLFHNFsfeBfnJZMFP2pGBbO1dW/2H1R0ogX95Ci VdCF TwX6K5tYSOmqPI1x ECAwEAAaAbMBkGCSqGSIb3DQEJBzEMDApteXBhc3N3ī3JkMA0GCSqGSIb3DQEBBQUAA4GBAKdmonasFGzPFiY8pgQThwIUvHo7her3SiPL M968gtdGcEL4voQfn0VjV93QvnGpvBMAPjRN7VURgh3I6O9yBTIsSLCnyf9UXY/J T08yB2Kq5BHdFxoPpIuBNEMj/jHvVpibz3xIfBp/SMNfKOI3vVDfIFVrM5uhqgU9 MIIBgjCB7AIBADAoMRIwEAYDVQQKDAlsb2NhbGhvc3Q圎jAQBgNVBAMMCWxvY2FsĪG9zdDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA5EMYww9 px/ZX3IfZvgk This will create a file called server.csr containing something like: Also choose a different challenge password than mypassword. You should of course use the appropriate data instead of localhost and dot (which means empty field). Please enter the following 'extra' attributes Organization Name (eg, company) :localhost If you enter '.', the field will be left blank. There are quite a few fields but you can leave some blankįor some fields there will be a default value, What you are about to enter is what is called a Distinguished Name or a DN. ![]() You are about to be asked to enter information that will be incorporated You can then use the key to generate a certificate sign request using the following command: D:\Software\xampp\apache\bin>openssl req -nodes -new -key server.key -out server.csr SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=PKCS8_PRIV_KEY_INFO)ĪH00016: Configuration Failed Generating a certificate sign request SSL Library Error: error:04093004:rsa routines:OLD_RSA_PRIV_DECODE:RSA lib SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=RSA) SSL Library Error: error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag AH02564: Failed to configure encrypted (?) private key localhost:8443:0, check D:/Software/xampp/apache/conf/ssl.key/server.key See D:/Software/xampp/apache/logs/error.log for more information AH02311: Fatal error initialising mod_ssl, exiting. AH02577: Init: SSLPassPhraseDialog builtin is not supported on Win32 (key file D:/Software/xampp/apache/conf/ssl.key/server.key) Which will lead to such an error loading the key from XAMPP: ![]() Verifying - Enter pass phrase for server.key: Do not this will cause your key to contain a pass phrase: D:\Software\xampp\apache\bin>openssl genrsa -des3 -out server.key 1024 Note you can find instructions saying to use the -des3 option. MJUFZ9SPiaiNzVZhMijmAR3klnOz1XZlRhC/z9fzDJVopGk= KYzw0CCmuCdOk6nICl7RzQJBANeQEfc FT3r3mdVLnyXraAjPxo RFDZvWqQJiJY OYpeQawLOLGdoJBXZdqgtZ2BgkZ0vwu/rcIs6NjqC RELF 6N6YIaJCFoMBgDgZS M/rvwprbecoDnFzYvnTnwLe7ERY4HDMGPSv6he8oClFEHTFTGs4r/FWU3GjJAkEA ZdvI7z/4nQJBAOyH3yuROrzrqFIe5YlyKLxeLx28T0IdYS1zwt064zfgMyi3eWG ĬAibg81cAMqlDhMzden8/CTYZYEQIhD6/xUCQQCA0tcvbdGrcpLo1kUxHv5OFjeR XsMVMfeEC7hOzUCHd3bX0Ye8BYBTVslQAZmrBQZv3Z59W MSM3aJT6vPYtsMwIWH MJvPfEh8Gn9Iw18o4je9UN8gVWszm6GqBT0z3r圜10ZwQvi hB fRWNX3dC cam8ĮwA NE3tVRGCHcjo73IFMixIsKfJ/1Rdj8lV0IX5PBform1hI6ao8jXH4QIDAQABĪoGBAImgEtv5CaoGP WRWy2DJ0heM6PJO4h/yWgpvHU0vAJ0ze L8oMdVUiYCnDĪB8c/NEPo//XNNCv79TL7ystwXnTLlLR05n90Ta3SBFex1Pp48Rn7vLReZmiTrMcĦP7hqlKYCny 5zcx9gNzYJ73OsRoJGy0wdRRy6lRB87iiRDhAkEA9wz9Vc9vpDie ![]() MIICXwIBAAKBgQDkQxjDD36nH9lfch9m CS3TzIHYqrkEd0XGg ki4E0QyP Me9W This will create a file called server.key with a content similar to: Generating RSA private key, 1024 bit long modulus Loading 'screen' into random state - done You can generate the key by executing the following: D:\Software\xampp\apache\bin>openssl genrsa -out server.key 1024 Once the certificate is generated you can install it as shown here. Note that since we are generating a self sign certificate, we can combine these 3 steps into 1 as described here. Generating a certificate involves 3 steps: We’ll first define a couple of environment variables so that we do not need to provide them every time as parameter to openssl: set OPENSSL_CONF=D:\Software\xampp\apache\conf\openssl.cnf Open a DOS prompt and navigate to the apache\bin directory in your XAMPP for Windows installation: cd /D D:\Software\xampp\apache\bin So I installed the latest version and since the certificate in there was from 2013 I was not really sure whether it was safe or not so I decided to generate a new one. Since I had an older version of XAMPP for Windows installed, it was still using openssl 1.0.1e in which the heartbleed vulnerability was not yet fixed. ![]()
0 Comments
Leave a Reply. |