[ previous ] [ next ] [ threads ]
 From:  "Jeroen Visser" <monowall at forty dash two dot nl>
 To:  <m0n0wall at lists dot m0n0 dot ch>
 Subject:  Re: [m0n0wall] SSL Certs
 Date:  Fri, 25 Nov 2005 15:22:05 +0100
On Fri, 25 Nov 2005 06:12:02 -0800, PF: m0n0wall wrote
> How do I generate the "key" portion of the SSL cert?  I have never
> needed to generate a "Key" whey creating Certificates before.  Of course
> that may be because I use MS's silly Windows certificate services.
> Could someone give me some pointers here. I want to generate an SSL cert
> for captive portal use.  I don't care if the browser complains about the
> certificate.

This should do the trick.
Uses openssl.

openssl genrsa -des3 -out pass.key 1024
openssl rsa -in pass.key -out server.key
openssl req -new -key server.key -x509 -out server.crt -days 999

Jeroen Visser.
Sure, we know Unix, we've seen it in Jurassic Park...