Link to home
Start Free TrialLog in
Avatar of Jack_son_
Jack_son_Flag for Afghanistan

asked on

Debian enabling SSL

Hi All,

I have created a self signed certificate in debian linux using ssl.  I am now trying to get a default-ssl site setup.  Can someone help me out?  I did follow these instructions:  https://wiki.debian.org/Self-Signed_Certificate , but now apache wont start.  

Thanks,

Jackson
Avatar of xterm
xterm

Take a look in /var/log/(apache2 or httpd)/(error.log or ssl_error.log)

It should tell you what is causing the startup to fail.
ASKER CERTIFIED SOLUTION
Avatar of Jan Bacher
Jan Bacher
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jack_son_

ASKER

Here is the error:

apache2: Could not reliably determine the server's fully qualified domain name, using 2001:4802:7801:103:9128:887c:ff20:5e9c for ServerName
Syntax OK
In your httpd.conf, do you have 'ServerName' specified?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
For the first command I see this:

23649 pts/0    S+     0:00 grep httpd

THe second one I don't see anything....


Also right now I am just trying to use it from public ip
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
How are you starting the service?  What do the apache error logs say?
service apache2 restart

I see the same error as above, I think it may be the name in the config file.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you mean add it in the default-ssl config file?
No, change ServerName in httpd.conf (it's commented out by default, so remove the # sign) and change it to your own fully qualified domain name of your server (aka 'server.domain.com').

Of course, I don't think this is your issue because you said it was working fine until you added the SSL config.  I believe it's something you did in the SSL setup that is breaking it.
Thanks; i restored the old ssl config file.  Here is the error I see now:

502 Bad Gateway - Response Error, a bad response was received from another proxy server or the destination origin server.
actually fixed the 502 error.  I think the issue is in the ports.conf file.  Right now the first few lines read:

NameVirtualHost *:80
Listen 80

then there is an
<IfModule mod_ssl.c>
which has the Listen 443 within it.

Can someone verify the config for this an the ssl file?
THanks for the help everyone, got both http and https working!
Good work!