[Gllug] Domain certificate warning
Yashpal Nagar
yash at linux-delhi.org
Mon Oct 2 20:47:08 UTC 2006
Hi there,
I am generating a self signed certicate for one of our pre-live
domain on a server. Server name is hosta and /etc/hosts is fine against
a IP. I
have generated a mydomain.key as
openssl genrsa -out mydomain.key 1024
without encryption and then a csr and a certificate as follows.
openssl req -new -key mydomain.key -out mydomain.csr
openssl x509 -req -days 360 -in mydomain.csr -signkey mydomain.key -out
mydomain.crt
I am using a virtual host for a ssl domain, problem is when i start
the server everytime it shows me the following in ssl_error_log
----------------
[Mon Oct 02 10:32:44 2006] [warn] RSA server certificate CommonName(CN)
`hosta' does NOT match server name!?
[Mon Oct 02 10:32:45 2006] [warn] RSA server certificate CommonName(CN)
`hosta' does NOT match server name!?
-----------------
During csr generation i have given my domainname not the server name
i.e mydomain.com instead of hosta.
Then why these error messages coming, anything i missed or wrong?
My Virtualhost config is:
----------------
<VirtualHost 192.168.200.42:443 <http://192.168.200.42:443>>
ServerAdmin webmaster at dummy-host.example.com
<mailto:webmaster at dummy-host.example.com>
DocumentRoot /var/www/html/mydomain
ServerName mydomain.com <http://myuat.crystalholidays.co.uk>
SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.key/mydomain.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/mydomain.key
#SSLCACertificateFile /etc/httpd/conf/ssl.crt/intermediate.crt
ErrorLog logs/mydomain.com-error_log
CustomLog logs/mydomain.com-access_log common
</VirtualHost>
--------------
Regards
Yashpal
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list