Forum Moderators: phranque

Message Too Old, No Replies

mod gnutls giving me a parse error with a key from a CA.

error, parse, apache2, modgnutls

         

mtlhd

8:21 pm on Jul 8, 2010 (gmt 0)

10+ Year Member



Hey all, I need someone's advice that uses mod_gnutls as opposed to mod_ssl.

I am trying to run SSL on another port instead of 443. Our firewall is crap and has some service already running there and makes my site time out. When I changed the port for mod_ssl, it required me to put the port number in the URL. Wasn't a huge fan. Then I was enlightened to the glory of mod_gnutls.

but of course, I can't get it to run. :-(

I bought a cert from a CA but gnutls shoots me errors on them. (mod_ssl has no problem)
I don't understand it.

here is the snippet of my sites available file for apache2
<VirtualHost *:###>
ServerName www.mysite.com:###
ServerAlias mysite.com misite.com www.misite.com
ServerAdmin webmaster@mysite.com
DocumentRoot /home/me/www/mysite
<Directory />
Options FollowSymLinks -Indexes
AllowOverride None
Order Allow,Deny
Allow from all
</Directory>
ErrorLog /var/log/apache2/ssl-error.log
CustomLog /home/me/www/mysite/logs/access.log combined

#Mod_GnuTLS currently enabled
GnuTLSEnable on
GnuTLSCertificateFile /etc/apache2/ssl.crt/mysite.crt
GnuTLSKeyFile /etc/apache2/ssl.key/mysite.key
GnuTLSPriorities NORMAL
</VirtualHost>


When I try to start apache2, it gives me this error:
Syntax error on line 91 of /etc/apache2/sites-enabled/000-default:
GnuTLS: Failed to Import Private Key '/etc/apache2/ssl.key/mysite.key': (-69) ASN1 parser: Error in DER parsing.


Totally lost on this.
Thanks in advance.

jdMorgan

7:19 pm on Jul 10, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Apache says that it cannot parse the private key at the specified path. Why not? What do the GnuTLS documentation and Google have to say about the meaning of "DER parsing error"?

Jim