luasec/samples/certs/rootB.sh

8 lines
321 B
Bash
Raw Permalink Normal View History

2019-10-19 10:22:21 -03:00
#!/usr/bin/env sh
2012-09-02 11:22:22 -03:00
openssl req -newkey rsa:2048 -sha256 -keyout rootBkey.pem -out rootBreq.pem -nodes -config ./rootB.cnf -days 365 -batch
2012-09-02 11:15:49 -03: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 11:15:49 -03:00
openssl x509 -subject -issuer -noout -in rootB.pem