luasec/samples/certs/rootB.sh

8 lines
313 B
Bash
Raw Permalink Normal View History

#!/bin/sh
2012-09-02 16:22:22 +02:00
openssl req -newkey rsa:2048 -sha256 -keyout rootBkey.pem -out rootBreq.pem -nodes -config ./rootB.cnf -days 365 -batch
2012-09-02 16:15:49 +02:00
openssl x509 -req -in rootBreq.pem -sha256 -extfile ./rootB.cnf -extensions v3_ca -signkey rootBkey.pem -out rootB.pem -days 365
2012-09-02 16:15:49 +02:00
openssl x509 -subject -issuer -noout -in rootB.pem