Problem setting up ssl cert

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

Problem setting up ssl cert

Postby mikexp » 12. June 2005 23:58

I cant seam to figure out how to setup XAMPP with ssl, I created a CSR and KEY and got my cert in PEM format.

Im not an apache expert so I have no idea what to look at.

The .crt file and .key file are clear text files with the pem data pasted into them.

I added the folliowing to the httpd.conf file

DocumentRoot /nfs/server/html
ErrorLog /nfs/server/logs/error_webserver1
TransferLog /nfs/server/logs/access_webserver1
SSLEngine on
SSLCertificateFile /opt/lampp/etc/ssl.crt/mysitename.crt
SSLCertificateKeyFile /opt/lampp/etc/ssl.key/mysitename.key
# SSLCACertificateFile /etc/httpd/conf/ssl.crt/ca-bundle.crt
<Files ~ "\.(cgi|shtml)$">
SSLOptions +StdEnvVars
<Directory "/etc/httpd/cgi-bin">
SSLOptions +StdEnvVars
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
CustomLog /nfs/server/logs/ssl_request_log_webserver1 \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

and when I try to start XAMPP I get the error

[root@webserver1 /]# /opt/lampp/lampp start
Starting XAMPP for Linux 1.4.13...
XAMPP: Starting Apache with SSL (and PHP4)...
XAMPP: Error 1! Couldn't start Apache!
XAMPP: Starting diagnose...
XAMPP: Sorry, I've no idea what's going wrong.
XAMPP: Please contact our forum
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.

So it wont start and never asks me for the passphrase
Posts: 3
Joined: 10. June 2005 23:17

Possible problem with Passphrase

Postby jalvarado » 15. August 2007 21:01

I struggled with this for a week, but finally found the solution. ... 0e839fec8a

One possible problem is that XAMPP does not like passphrases. The passphrase is a password that you may have set when creating the certificate key.

The quickest solution is to remove the passphrase from your key.

1.Remove the encryption from the RSA private key (while preserving the original file):

$ cp server.key
$ openssl rsa -in -out server.key

2.Make sure the server.key file is now only readable by root:

$ chmod 400 server.key
Posts: 1
Joined: 15. August 2007 20:49

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 4 guests