Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Server Platforms
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Server Platforms
Discussion regarding any server based ubuntu release.

 
Thread Tools Display Modes
Old April 10th, 2007   #1
maxwas
5 Cups of Ubuntu
 
Join Date: Apr 2006
Location: Paisley
Beans: 35
The Feisty Fawn Testing
Send a message via MSN to maxwas
ssl and apache

Hello all,

I have a test box with ubuntu server with xubuntu-desktop running locally on my lan. I have been using the box for playing around with apache2. I have managed to get it up and running no probs with php, mysql, virtual hosts, userdirs, and ssi.

I would now like to have a shot at ssl but do not really know where to start. There is an ssl folder in /etc/apache2 but it is empty

Can anyone point me to a nice beginners tutorial. I have used all the tutorials on this forum to get me to the point i am now at, they have been great, so im sure there must be one somewhere

Thx in advance

Max
maxwas is offline   Reply With Quote
Old April 10th, 2007   #2
heimo
Skinny Extra Sweet Ubuntu
 
heimo's Avatar
 
Join Date: Apr 2005
Location: Finland
My beans are hidden!
Hardy Heron (Ubuntu Development)
Re: ssl and apache

Try this one:
https://help.ubuntu.com/community/fo...er/apache2/SSL
__________________
Docs, wiki, UDSF, tutorials, security
heimo is offline   Reply With Quote
Old April 10th, 2007   #3
maxwas
5 Cups of Ubuntu
 
Join Date: Apr 2006
Location: Paisley
Beans: 35
The Feisty Fawn Testing
Send a message via MSN to maxwas
Re: ssl and apache

Fantastic!!

Thanks very much

maxwas is offline   Reply With Quote
Old April 10th, 2007   #4
maxwas
5 Cups of Ubuntu
 
Join Date: Apr 2006
Location: Paisley
Beans: 35
The Feisty Fawn Testing
Send a message via MSN to maxwas
Re: ssl and apache

Ok, i used the guide and it worked a treat - this was done on a box running ubuntu server with a default LAMP install. Only one minor difficulty, when i open up the browser running on the box and:
it works fine.

Now when i go to another box on the lan and try:
Quote:
https://<server_ip>
apache returns an unexpected error (and code), is there any way to get around this?

Another problem i have is i have ubuntu 6.10 running on another machine under vmware. I have LAMP installed on this as well, but it was installed using this command:
Quote:
sudo apt-get install apache2 php5 mysql-client-5.0 mysql-server-5.0 php5-mysql libapache2-mod-php5 libapache2-mod-auth-mysql
when i try to follow the ssl howto, the command:
Quote:
apache2-ssl-certificate -days 365
will not work is there perhaps something i missed in my install?

Many thx

Max
maxwas is offline   Reply With Quote
Old April 10th, 2007   #5
darrenm
Dipped in Ubuntu
 
Join Date: May 2006
Location: Bromsgrove, UK
Beans: 591
Kubuntu Karmic Koala (testing)
Send a message via MSN to darrenm
Re: ssl and apache

Ref problem 2. Does it say apache2-ssl-certificate not found?

Seems to be missing from the current build package.
darrenm is offline   Reply With Quote
Old April 10th, 2007   #6
maxwas
5 Cups of Ubuntu
 
Join Date: Apr 2006
Location: Paisley
Beans: 35
The Feisty Fawn Testing
Send a message via MSN to maxwas
Re: ssl and apache

yep,

Quote:
bash: apache2-ssl-certificate: command not found
I have tried comparing the ubuntu server install with the manual install and all the same stuff seems to be there.

Thx
maxwas is offline   Reply With Quote
Old April 10th, 2007   #7
darrenm
Dipped in Ubuntu
 
Join Date: May 2006
Location: Bromsgrove, UK
Beans: 591
Kubuntu Karmic Koala (testing)
Send a message via MSN to darrenm
Re: ssl and apache

Theres a bug report for Feisty https://bugs.launchpad.net/ubuntu/+s...he2/+bug/77675 so Im not sure why its happening on Edgy.
darrenm is offline   Reply With Quote
Old April 20th, 2007   #8
MadeR
A Carafe of Ubuntu
 
MadeR's Avatar
 
Join Date: Sep 2006
Beans: 152
Kubuntu 7.10 Gutsy Gibbon
Send a message via ICQ to MadeR Send a message via MSN to MadeR Send a message via Yahoo to MadeR Send a message via Skype™ to MadeR
Re: ssl and apache

quick workaround taken from debian bug tracker:

sudo mkdir /etc/apache2/ssl
sudo /usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem
__________________
msn : mas_dero@hotmail.com; skype: masdero
MadeR is offline   Reply With Quote
Old September 6th, 2007   #9
Shane N
First Cup of Ubuntu
 
Join Date: Aug 2006
Beans: 6
Re: ssl and apache

Quote:
Originally Posted by MadeR View Post
quick workaround taken from debian bug tracker:

sudo mkdir /etc/apache2/ssl
sudo /usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem
Building on this, if you add the following line to $HOME/.profile, you'll be able to simply run apache2-ssl-certificate as if it were installed (you'll need to log out/in to make it work the first time):
Quote:
alias apache2-ssl-certificate='sudo /usr/sbin/make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/apache2/ssl/apache.pem'
Shane N is offline   Reply With Quote
Old September 10th, 2007   #10
mathieubill
First Cup of Ubuntu
 
Join Date: Nov 2005
Beans: 6
Re: ssl and apache

Quote:
Originally Posted by Shane N View Post
Building on this, if you add the following line to $HOME/.profile, you'll be able to simply run apache2-ssl-certificate as if it were installed (you'll need to log out/in to make it work the first time):
Except that this command issues a certificate valid for only one month.
In the original script apache2-ssl-certificate, you could pass a -days xxx as an argument. With the debian script, you can't. I am currently looking for a solution for this.
mathieubill is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:03 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry