Walk me through creating a self-signed certificate?

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Walk me through creating a self-signed certificate?

Postby gschoppe » Thu Apr 04, 2013 3:27 pm

I vaguely remember a relatively simple process of creating an SSL certificate that involved a setup utility that asked questions about my business... but I cannot find the commands anymore.
gschoppe
 
Posts: 28
Joined: Thu Feb 21, 2013 11:58 pm

Re: Walk me through creating a self-signed certificate?

Postby pepedog » Thu Apr 04, 2013 4:09 pm

pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Walk me through creating a self-signed certificate?

Postby grayman4hire » Thu Apr 04, 2013 4:13 pm

For NGINX

$this->bbcode_second_pass_code('', '
#Configure SSL
#http://wiki.nginx.org/HttpSslModule

#create folder to store certs
mkdir -p /etc/nginx/certs
cd /etc/nginx/certs

#Now create the server private key, you'll be asked for a passphrase:
openssl genrsa -des3 -out pogoplug.key 1024

#Create the Certificate Signing Request (CSR):
openssl req -new -key pogoplug.key -out pogoplug.csr

#Remove the necessity of entering a passphrase for starting up nginx with SSL using the above private key:
cp pogoplug.key pogoplug.key.org

openssl rsa -in pogoplug.key.org -out pogoplug.key

#Finally sign the certificate using the above private key and CSR:
openssl x509 -req -days 3650 -in pogoplug.csr -signkey pogoplug.key -out pogoplug.crt')
grayman4hire
 
Posts: 350
Joined: Sat Sep 29, 2012 12:03 am
Location: SF, CA


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 14 guests