Help with Installing SSL in XAMP 3.2.2

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

Help with Installing SSL in XAMP 3.2.2

Postby gamechief » 15. May 2017 06:46

Hello Everyone,

I am trying to install a Certificate for my server.

I followed the instructions from this website: https://latunyj.wordpress.com/2011/10/31/generating-self-signed-certificate-in-xampp-win32-for-apache-web-server/

Seeing as how there is no direct instructions on how to perform the installation with a Godaddy cert the tutorial above is the closest i have gotten to installing the cert save for the self signed certificate.
When i input the configurations and setup the Vhost and try to start the apache server i receive the following error.

[Mon May 15 01:46:31.315713 2017] [ssl:emerg] [pid 3856:tid 488] AH02562: Failed to configure certificate localhost:443:0 (with chain), check C:/xampp/apache/conf/ssl.key/server.key
[Mon May 15 01:46:31.315713 2017] [ssl:emerg] [pid 3856:tid 488] SSL Library Error: error:0906D06C:PEM routines:PEM_read_bio:no start line (Expecting: TRUSTED CERTIFICATE) -- Bad file contents or format - or even just a forgotten SSLCertificateKeyFile?
[Mon May 15 01:46:31.315713 2017] [ssl:emerg] [pid 3856:tid 488] SSL Library Error: error:140DC009:SSL routines:SSL_CTX_use_certificate_chain_file:PEM lib
AH00016: Configuration Failed

My Vhost configuration

<VirtualHost *:443>
serverAdmin webmaster@lanitservices.com
DocumentRoot "C:/xampp/htdocs/public"
SSLEngine on
SSLCertificateKeyFile "C:/xampp/apache/conf/ssl.crt/server.crt"
SSLCertificateFile "C:/xampp/apache/conf/ssl.key/server.key"
</VirtualHost>

Checking my key file i see no spaces or extra lines using brackets as my editor. so could there be an issue with the file itself and how its being generated? i have regenerated a private key and CSR 3x times using 3 different tutorials and also rekeying with godaddy.

Any help would be appreciated.

Thanks,
gamechief
 
Posts: 1
Joined: 15. May 2017 06:37
XAMPP version: 3.2.2
Operating System: Windows Server 2012 R2

Re: Help with Installing SSL in XAMP 3.2.2

Postby kobrrage » 08. June 2017 11:51

<VirtualHost *:443>
serverAdmin webmaster@lanitservices.com
DocumentRoot "C:/xampp/htdocs/public"
SSLEngine on
SSLCertificateKeyFile "C:/xampp/apache/conf/ssl.crt/server.crt"
SSLCertificateFile "C:/xampp/apache/conf/ssl.key/server.key"
</VirtualHost>


Take a look at your <VirtualHost> settings. You should be able to spot the problem with my highlights :)
kobrrage
 
Posts: 1
Joined: 08. June 2017 11:33
XAMPP version: 7.1
Operating System: 7.1


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 282 guests