Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Oct 2014, 04:19
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
HOWTO create an SSL certificate
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message

Joined: 27 Apr 2008
Posts: 196

PostPosted: Sat 16 Jan 2010, 13:46    Post_subject:  HOWTO create an SSL certificate  

To use SSL on a server you need to have a SSL certificate. A common misconception is that to get a certificate you have to pay for it, but you can actually make them for free using OpenSSL.

They will be just as secure as any other key, but you key will not be verified so will not appear as trusted to your browser. For personal use this is fine, but I would recommend buying one if its for a public website.

Anyway here is how you can make one:

-First we need to make a private key.
OpenSSL> genrsa -des3 -out my.key 1024

You will be asked for a password here to encrypt it with. This will generate a 1024 bit rsa key that is encrypted with triple-DES for extra security.

N.B. - you can change the number of bits, however this can cause problems with certain browsers (IE).

You can view the key using:
OpenSSL>rsa -noout -text -in my.key

-Then to generate the certificate itself using the private key we've generated just use the command:
OpenSSL>req -new -sha1 -days 3650 -key my.key -out my.cert

It will ask you a series of questions that will form the request for a certificate to be generated. Fill these in apart from the 'Extra attributes' (challenge password and optional company name). If you do enter a challenge password you will need to enter a password everytime you start your web server.

The "-days" part of the command means how many days the certificate is valid for.

In a total of two commands we've made a SSL certificate for your site, server or a program of your own.

Hope this is helpful,
Back to top
View user's profile Send_private_message 

Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Thu 18 Feb 2010, 14:13    Post_subject: Re: HOWTO create an SSL certificate  

jamesjeffries2 wrote:
Hope this is helpful,

love it

Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot attach files in this forum
You can download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0418s ][ Queries: 11 (0.0034s) ][ GZIP on ]