I have a problem with a nested subdomain and opensl certificate. Perhaps this is due to the type of subdomain: site1.parisgeo.cnrs.fr or site2.parisgeo.cnrs.fr or another subobject such as xxxx.parisgeo. cnrs.fr
When I create the self-signed certificate, I enter CN = * .parisgeo.cnrs.fr, but it seems impossible to connect on this site, for example partage.parisgeo.cnrs.fr, with this configuration! Arg.
My virtual host and my apache2 conf work without a template, so the problem is not here:
Port .conf
NameVirtualHost *:443 Listen 443
Virtual host example i:
<VirtualHost *:443> ServerName partage.parisgeo.cnrs.fr ServerAlias www.partage.parisgeo.cnrs.Fr DocumentRoot /var/www/owncloud <Directory /var/www/owncloud> Options -Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory> SSLEngine on SSLCertificateFile /etc/ssl/parisgeo.cnrs.fr.crt SSLCertificateKeyFile /etc/ssl/parisgeo.cnrs.fr.key </VirtualHost>
I generate my certificate as follows (CN = * .parisgeo.cnrs.fr):
openssl genrsa -des3 -out ca.key 2048 openssl req -new -x509 -days 3650 -key ca.key -out ca.crt openssl req -newkey rsa:1024 -nodes -keyout parisgeo.cnrs.fr.key -out parisgeo.cnrs.fr.csr openssl x509 -req -days 3650 -in parisgeo.cnrs.fr.csr -CA ca.crt -CAcreateserial -CAkey ca.key -out parisgeo.cnrs.fr.crt
Right for my generation key file:
-rw-r--r-- 1 root root 1424 14 dΓ©c. 11:51 ca.crt -rw-r--r-- 1 root root 1743 14 dΓ©c. 11:50 ca.key -rw-r--r-- 1 root root 17 14 dΓ©c. 12:13 ca.srl -rw-r--r-- 1 root root 981 14 dΓ©c. 12:13 parisgeo.cnrs.fr.crt -rw-r--r-- 1 root root 627 14 dΓ©c. 12:08 parisgeo.cnrs.fr.csr -rw-r--r-- 1 root root 891 14 dΓ©c. 12:08 parisgeo.cnrs.fr.key
When I try to connect and test the certificate using openssl:
root@xxxx :/etc/ssl
Firefox error while trying to connect to the site:
An error occurred during a connection to partage.parisgeo.cnrs.fr. Peer certificate has an invalid signature. (Error code: sec_error_bad_signature)
If you have an idea to help me solve this problem. Thank you very much! Sr.