Ssl .crt .key

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Ssl .crt .key

Postby Tnecniv » 27. December 2015 18:46

Hello reader.

iam having some troubles sorting the ssl for my website.
I googled for quite some time and saw a lot of posts from this forum but not my answer.

I ended up in having a crt file and the key.
File structure
/xampp/apache/conf
Extra
original
ssl.crt/www.hostname.xyz.crt
ssl.key/hostname.xyz.key
*some other files.

Iam using an external website to issue a ssl certificate to my website.

still it spits out the following error starting apache
anyone can suggest me where to look where i didn't understand what the deal was.
thanks in advance

Code: Select all
[Sun Dec 27 18:26:51.365125 2015] [ssl:emerg] [pid 2192:tid 496] AH02577: Init: SSLPassPhraseDialog builtin is not supported on Win32 (key file C:/xampp/apache/conf/ssl.key/myhostname.xyz.key)
[Sun Dec 27 18:26:51.365125 2015] [ssl:emerg] [pid 2192:tid 496] AH02311: Fatal error initialising mod_ssl, exiting. See C:/xampp/apache/logs/error.log for more information
[Sun Dec 27 18:26:51.365125 2015] [ssl:emerg] [pid 2192:tid 496] AH02564: Failed to configure encrypted (?) private key myhostname.xyz:443:0, check C:/xampp/apache/conf/ssl.key/myhostname.xyz.key
[Sun Dec 27 18:26:51.365125 2015] [ssl:emerg] [pid 2192:tid 496] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Sun Dec 27 18:26:51.365125 2015] [ssl:emerg] [pid 2192:tid 496] SSL Library Error: error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error
[Sun Dec 27 18:26:51.365125 2015] [ssl:emerg] [pid 2192:tid 496] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Sun Dec 27 18:26:51.365125 2015] [ssl:emerg] [pid 2192:tid 496] SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=RSA)
[Sun Dec 27 18:26:51.365125 2015] [ssl:emerg] [pid 2192:tid 496] SSL Library Error: error:04093004:rsa routines:OLD_RSA_PRIV_DECODE:RSA lib
[Sun Dec 27 18:26:51.365125 2015] [ssl:emerg] [pid 2192:tid 496] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Sun Dec 27 18:26:51.365125 2015] [ssl:emerg] [pid 2192:tid 496] SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=PKCS8_PRIV_KEY_INFO)
AH00016: Configuration Failed



my website's name has been removed from the logs and post

//EDIT

I seem to solve it myself after some time. Googling the wrong errors will get you no where XD
To share what i have found

Code: Select all
Applicable to: Windows 2000, 2003, XP running Apache win32

Problem:

Upon Apache startup with SSL, the log shows the following error:

[error] Init: SSLPassPhraseDialog builtin is not supported on Win32.

The SSLPassPhraseDialog is a directive within the Apache httpd.conf or ssl.conf that is not supported by Windows

Resolution:

Remove the encryption from the RSA private key (while preserving the original file)
Remark out - SSLPassPhraseDialog in the appropriate apache conf file with a # in front of the directive

1. Make a copy of the private key and call it "server.key.org"
2. Use the OpenSSL command to remove the passphrase such as;

openssl rsa -in server.key.org -out server.key
server.key will be your new private key with the passphrase removed.

3. Move this new key to the same path as where your original was kept. Verify that the directive called "SSLCertificateKeyFile" in your apache config file points to the new private key.
4. Find the directive "SSLPassPhraseDialog" and put a # in front to comment out the line.

You will now be able to startup Apache with SSL on Windows.

Source: http://www.entrust.net/knowledge-base/technote.cfm?tn=5634

MOD: I didnt read the rules for posting links on this forum so if there is a rule excuse me and edit my post
Thanks in advance
Tnecniv
 
Posts: 1
Joined: 27. December 2015 18:32
Operating System: Windows Server

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 125 guests