LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 07-08-2010, 09:59 AM   #1
mtlhd
Member
 
Registered: Sep 2007
Location: Ohio
Distribution: Debian, CentOS, Ubuntu
Posts: 126

Rep: Reputation: 18
Unhappy mod_gnutls giving me a parse error with a key from a CA.


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
Code:
<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:
Code:
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 LQ community.
 
Old 07-08-2010, 01:12 PM   #2
mtlhd
Member
 
Registered: Sep 2007
Location: Ohio
Distribution: Debian, CentOS, Ubuntu
Posts: 126

Original Poster
Rep: Reputation: 18
:bump :-(
 
Old 07-08-2010, 01:36 PM   #3
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally Posted by mtlhd View Post
:bump :-(
Don't do this it's considered extremely bad netiquette here. Be considerate of the fact that LQ members are from all parts of the globe, and as such are located in all time zones. Wait at least 24 hours before bumping your thread, and when you do, provide details as to anything further which you've tried, or any new information you have. Also, with this bump, you've effectively canceled out the automatic bumps you would have been receiving due to the zero-reply status.

Last edited by win32sux; 07-08-2010 at 01:39 PM.
 
Old 07-08-2010, 02:39 PM   #4
mtlhd
Member
 
Registered: Sep 2007
Location: Ohio
Distribution: Debian, CentOS, Ubuntu
Posts: 126

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by win32sux View Post
Don't do this it's considered extremely bad netiquette here. Be considerate of the fact that LQ members are from all parts of the globe, and as such are located in all time zones. Wait at least 24 hours before bumping your thread, and when you do, provide details as to anything further which you've tried, or any new information you have. Also, with this bump, you've effectively canceled out the automatic bumps you would have been receiving due to the zero-reply status.
My apologies.
Just used to seeing it on other threads.
Didn't know about auto bump.
 
  


Reply

Tags
apache2, error, parse


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: parse error, unexpected '/' - can anyone see the error in this code? v@ny@ Programming 8 04-03-2010 04:07 PM
What's the meaning of "PHP Parse error: parse error, unexpected $ in..." frandalla Programming 23 03-04-2009 12:34 PM
PHP Error Parse error: parse error, unexpected $ in /home/content/S/k/i/SkinCare4U/h CowanServices Programming 2 12-09-2008 08:26 PM
Parse error: parse error, unexpected '}' in /home/content jouvert Linux - Newbie 3 05-17-2008 06:55 PM
Parse error: parse error, unexpected $ in /home/content/d/o/m/domain/html/addpuppy2.p Scooby-Doo Programming 3 10-25-2007 09:41 AM


All times are GMT -5. The time now is 08:08 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration