mono-tls/MartinsPlayground/CA
Martin Baulig 90561a4767 Initial import. 2015-02-08 06:59:25 +01:00
..
certs Initial import. 2015-02-08 06:59:25 +01:00
.gitignore Initial import. 2015-02-08 06:59:25 +01:00
Hamiller-Tube-CA.key Initial import. 2015-02-08 06:59:25 +01:00
Hamiller-Tube-CA.pem Initial import. 2015-02-08 06:59:25 +01:00
README Initial import. 2015-02-08 06:59:25 +01:00
certindex.txt Initial import. 2015-02-08 06:59:25 +01:00
certindex.txt.attr Initial import. 2015-02-08 06:59:25 +01:00
monkey.cert Initial import. 2015-02-08 06:59:25 +01:00
monkey.key Initial import. 2015-02-08 06:59:25 +01:00
monkey.pem Initial import. 2015-02-08 06:59:25 +01:00
monkey.pfx Initial import. 2015-02-08 06:59:25 +01:00
monkey.req Initial import. 2015-02-08 06:59:25 +01:00
openssl.cnf Initial import. 2015-02-08 06:59:25 +01:00
serial Initial import. 2015-02-08 06:59:25 +01:00
server-cert.cert Initial import. 2015-02-08 06:59:25 +01:00
server-cert.conf Initial import. 2015-02-08 06:59:25 +01:00
server-cert.key Initial import. 2015-02-08 06:59:25 +01:00
server-cert.pem Initial import. 2015-02-08 06:59:25 +01:00
server-cert.pfx Initial import. 2015-02-08 06:59:25 +01:00
server-cert.req Initial import. 2015-02-08 06:59:25 +01:00
server-self.cert Initial import. 2015-02-08 06:59:25 +01:00
server-self.key Initial import. 2015-02-08 06:59:25 +01:00
server-self.pem Initial import. 2015-02-08 06:59:25 +01:00
server-self.pfx Initial import. 2015-02-08 06:59:25 +01:00

README

Initialize:
$ echo '100001' >serial
$ touch certindex.txt
$ mkdir certs

Create CA:
/usr/local/bin/openssl req -new -x509 -days 3650 -keyout cakey.pem -out cacert.pem

Create Certificate Request:
/usr/local/bin/openssl req -new -nodes -out monkey-req.pem -keyout monkey-key.pem -days 3650

Create Certificate:
/usr/local/bin/openssl ca -cert cacert.pem -keyfile cakey.pem -out monkey-cert.pem -days 3650 -infiles monkey-req.pem 

Create .PFX:
/usr/local/bin/openssl pkcs12 -export -out monkey.pfx -inkey monkey-key.pem -in monkey-cert.pem 

Password is 'monkey'.

Create CR for the Server Certificate:
openssl req -config server-cert.conf -extensions server_exts -nodes -days 3650 -newkey rsa:4096 -keyout server-cert.key -out server-cert.crt