LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-03-2010, 06:54 PM   #1
gjwalsh
Member
 
Registered: Oct 2010
Location: Victoria, B.C., Canada
Distribution: OpenSuSE Tumbleweed
Posts: 30

Rep: Reputation: 0
Switching from openssl to gnutls for https traffic on apache


For some years now I have been able to use openssl (apache-mod_ssl) to process encrypted traffic because I had, in effect, only one host - the main server - as the sole entry in our ssl_vhost.conf file.

Now we are working toward serving a couple of more secure sites for closely related organizations, but with their own distinct identities. This, in the past, would have meant additional static IPs with matching nic cards for starters. But my understanding is that since 2007/8 we have been able to use gnutls (apache-mod_gnutls) which gets around the old problem of Apache not being able to direct name-based traffic because that would not yet have been decoded. This is referred to as SNI - Server Name Indication.

Here my confusion begins. Is there an overlap between SSL and TLS? For instance, I would have generated RSA keys and a self-signed certificate with the genrsa command. Is this sufficient for gnutls or does it need to generate its own keys and certificates? I realize gnutls is relatively a new kid on the block but it is appealing and I'd like to give it a try.

Has anyone on the forum some experience with this?

I am working with the Mandriva/Mageia cooker with an x86_64 architecture so all packages are up-to-the-minute.

George
 
Old 11-04-2010, 01:17 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Quote:
Here my confusion begins. Is there an overlap between SSL and TLS? For instance, I would have generated RSA keys and a self-signed certificate with the genrsa command. Is this sufficient for gnutls or does it need to generate its own keys and certificates?
Yes you can use the same certificates. There is nothing special when you use SNI.

Regards
 
1 members found this post helpful.
Old 11-04-2010, 04:37 AM   #3
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
A while back, I too was really interested in gnutls for its SNI capability. At the time, Apache was supposed to support SNI in some future upgrade and I don't know if it was ever included. In order to use it, I first had to upgrade my openSSL library to the current one (the Ubuntu repositories were behind) and then patch Apache and built it from the source, which was a little tricky until I discovered the debian-layout configuration switch.

After the above, it seemed to work, at least most of the time, and with certain browsers like Firefox, but not the version of IE that we used at work. Overall, I think it is a convenient tool for someone who wants to host their own sites and have moderate security. I don't think it is production ready, at least as far as for professional services.

In case you are interested, at the time I posted some information regarding the process of getting it working on another forum. Here is the link. http://www.tek-tips.com/viewthread.cfm?qid=1586943
 
1 members found this post helpful.
Old 11-05-2010, 12:05 PM   #4
gjwalsh
Member
 
Registered: Oct 2010
Location: Victoria, B.C., Canada
Distribution: OpenSuSE Tumbleweed
Posts: 30

Original Poster
Rep: Reputation: 0
Thanks ... a very thorough and informative response.

Much appreciated.

Seems that Apache has included support for gnutls beginning with 2.12.12, which would have been just after your work in patching and building from source.

Currently we are running 2.12.17, and our distro provides apache-mod_gnutls. While editing the browser's config file, and following apache's documented examples for virtual hosting on port 443, I noted certificates were apparently maintained in a directory other the /etc/pki/ and I did not know if that would have negated openssl usage or not.

So ... I have removed apache-mod_ssl in favor of mod_gnutls, see if I can get the server up and running with these changes tonight when I am least likely to provoke others.

Again, thanks for sharing your experience with me.

George
 
  


Reply



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
Curl HTTPS OpenSSL Certificate issue Manjunath1847 Linux - General 1 08-09-2010 10:13 PM
Block https Traffic anu_here Linux - Security 8 10-30-2009 03:42 AM
how to block gmail & gtalk (https traffic)using squid satishmali1983 Linux - Server 4 06-25-2009 01:22 AM
Virus scanning in HTTPS encrypted traffic priyadarshan Linux - Security 10 05-13-2009 06:56 AM
HTTPS not working under Apache2 and OpenSSL pennywind Linux - Security 7 12-29-2005 01:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration