d193 Creating a SSL certificate - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Web & Network Services

Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old January 1st, 2009, 12:41
dennylin93 dennylin93 is offline
Member
 
Join Date: Dec 2008
Posts: 784
Thanks: 34
Thanked 103 Times in 71 Posts
Default Creating a SSL certificate

Right now I'm having trouble creating a SSL certificate and enabling it on Apache. I've seen a lot of tutorials, but none of them seem to work.

Wondering if anyone could provide me with instructions on how to create a SSL certificate and modify the Apache configuration file. Thanks in advance.
Reply With Quote
  #2  
Old January 1st, 2009, 13:23
felix's Avatar
felix felix is offline
Junior Member
 
Join Date: Nov 2008
Posts: 17
Thanks: 0
Thanked 14 Times in 3 Posts
Default

Edit /usr/local/etc/apache22/httpd.conf file:
Code:
#    Uncomment:
#    Include etc/apache22/extra/httpd-ssl.conf
Edit /usr/local/etc/apache22/extra/httpd-ssl.conf:
Code:
#    Uncomment and change to your domain name:
#    ServerName www.my_domain.org:443

#    Uncomment and change to your mail address:
#    ServerAdmin webmaster@my_domain.org
And run:
Code:
cd /usr/local/etc/apache22
openssl genrsa -des3 -out server.key 1024
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
chmod 0400 /usr/local/etc/apache22/server.key
chmod 0400 /usr/local/etc/apache22/server.crt

cd /usr/local/etc/apache22
cp server.key server.key.orig
openssl rsa -in server.key.orig -out server.key
Restart Apache...
Reply With Quote
The Following 2 Users Say Thank You to felix For This Useful Post:
MNIHKLOM (January 29th, 2013), paulfrottawa (January 2nd, 2011)
  #3  
Old January 1st, 2009, 23:27
morganw morganw is offline
Junior Member
 
Join Date: Jan 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you have trouble with the "openssl" program, look into /usr/ports/security/xca. I use it to manage all of the certificates for my WPA2 setup, and it's infinitely more useable than the basic "openssl" program.
Reply With Quote
  #4  
Old January 2nd, 2009, 13:14
dennylin93 dennylin93 is offline
Member
 
Join Date: Dec 2008
Posts: 784
Thanks: 34
Thanked 103 Times in 71 Posts
Default

Thanks for the replies. Do I need to modify openssl.cnf in order to generate the certificate?
Reply With Quote
  #5  
Old January 2nd, 2009, 17:05
gilinko's Avatar
gilinko gilinko is offline
Member
 
Join Date: Nov 2008
Location: SV_se
Posts: 416
Thanks: 1
Thanked 53 Times in 51 Posts
Default

openssl.cnf can be used to quickly add information that is requested by the above commands, BUT it's not necessary. The commands will ask you for the required information, and they are pretty easy to understand.

When asked for "YOUR name" in these dialogs you enter the full domain name(ie www.example.com or subdomain.example.com), and not your name. Can be confusing, but that's pretty much the only thing that isn't pretty clear in the dialogues.
Reply With Quote
The Following User Says Thank You to gilinko For This Useful Post:
MNIHKLOM (January 29th, 2013)
  #6  
Old May 13th, 2010, 17:26
ruaoh ruaoh is offline
Junior Member
 
Join Date: Nov 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I followed these steps to create my own cert.

http://www.akadia.com/services/ssh_t...rtificate.html
Reply With Quote
Reply

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
creating user from a webpage floydk Web & Network Services 8 March 22nd, 2009 16:32
Problem creating patch file roddierod Porting New Software 5 January 1st, 2009 02:15
Creating CD's dpalme Installing & Upgrading 5 November 24th, 2008 05:47
Creating Audio CD "image" files wiscodisco Multimedia 4 November 19th, 2008 17:39


All times are GMT +1. The time now is 06:11.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0