I get an error when trying setting up a subdomain with SSL..
I think it's because the servername isn't typed correct (with the 'ø') in the vhost?
Have just moved from a webhosting solution to a dedicated server.. Before migrating to the new server, the SSL worked on the subdomain, but I don't know how the vhost was setup on the webhosted server!? Probably not like this..? (if the vhost even is the problem?)
Domain
secure.online-økonomi.dk
vhost
<VirtualHost _default_:443>
ServerName secure.xn--online-konomi-hnb.dk
DocumentRoot /var/www/online-okonomi.dk
SSLEngine on
SSLCertificateFile /var/ini/ssl/secure.xn--online-konomi-hnb.dk/public.crt
SSLCertificateKeyFile /var/ini/ssl/secure.xn--online-konomi-hnb.dk/private.key
SSLCACertificateFile /var/ini/ssl/secure.xn--online-konomi-hnb.dk/intermediate.crt
SSLVerifyDepth 1
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
</VirtualHost>
Error
[Fri May 27 09:46:38 2011] [warn] RSA server certificate CommonName (CN) `secure.online-\xc3\xb8konomi.dk' does NOT match server name!?
[Fri May 27 09:46:38 2011] [error] Unable to configure RSA server private key
[Fri May 27 09:46:38 2011] [error] SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
The warning about the host name mismatch is probably not the actual issue - Apache should warn about a mismatching name (which there definitely is, even without character set translation issues), but that should not cause a complete failure of starting the SSL vhost.
The error about the mismatching public/private certificates is the concern. Check the certificate files for validity, and make sure they match:
It a known problem in the world of DNS, that resolving the danish letters 'æ' 'ø' 'å' is highly problematic. To me it seems like it cannot resolve the CN containing the 'ø'. I suggest that you get a new domain, replacing the danish letters with their english equals; 'ae' = æ 'oe' = ø 'aa' = å
Anything else will keep giving you lots of trouble over and over again..
However, I have one other suggestion, though not sure how to do it. Try to see if you can change the record a bit..
[Fri May 27 09:46:38 2011] [warn] RSA server certificate CommonName (CN) secure.online-\xc3\xb8konomi.dk' "
to[Fri May 27 09:46:38 2011] [warn] RSA server certificate CommonName (CN) secure.online-\xc3\konomi.dk'
or[Fri May 27 09:46:38 2011] [warn] RSA server certificate CommonName (CN) secure.online-\xc3\okonomi.dk'