httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gping <>
Subject [users@httpd] install certificate on httpd
Date Fri, 28 May 2010 02:59:40 GMT

I am using Fedora 10 httpd. By default, I can http:// and https:// to the
Now I want to 

1. disable http://  ie disable port 80 and keep https:// or port 443 only.
I am still using the default DocumentRoot  /var/www/html/.
I am confused if I should use Listen 443 or Listen x.x.x.x:443 or ServerName .
because when I /etc/init.d/httpd restart, it complainted 443 is already

2. I use openssl to self-signed a certificate:
openssl genrsa -des3 -out server.key 4096 
openssl req -new -key server.key -out server.csr 
openssl x509 -req -days 365 -in server.csr -signkey server.key -out

Then I add 
SSLEngine  on
SSLCertificateFile /home/test/server.crt
SSLCertificateKeyFile /home/test/server.key
just below the line of DocumentRoot

but the https://  result is it still showed default system certificate
(something like localhost..) not my self-signed one.

At this stage I dont plan to use <VirtualHost> ... to include the above
Could someone please help. Thanks a lot.
View this message in context:
Sent from the Apache HTTP Server - Users mailing list archive at

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message