httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gping <gping2...@optusnet.com.au>
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
host. 
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
aaa.com:443 .
because when I /etc/init.d/httpd restart, it complainted 443 is already
bind...

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
server.crt 

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
certificate.
Could someone please help. Thanks a lot.
-- 
View this message in context: http://old.nabble.com/install-certificate-on-httpd-tp28702259p28702259.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message