mirror of
https://github.com/jakeswenson/BitBetter.git
synced 2025-07-13 06:53:25 +00:00
Generate keys online in the .keys directory
This commit is contained in:
parent
ff5718b099
commit
2af1e8d5a7
|
@ -10,6 +10,8 @@ command -v openssl >/dev/null 2>&1 || { echo >&2 "openssl required but not found
|
||||||
[ ! -e cert.pfx ] || rm cert.pfx
|
[ ! -e cert.pfx ] || rm cert.pfx
|
||||||
|
|
||||||
# Generate new keys
|
# Generate new keys
|
||||||
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.cert -days 36500 -subj '/CN=www.mydom.com/O=My Company Name LTD./C=US' -outform DER -passout pass:test
|
openssl req -x509 -newkey rsa:4096 -keyout .keys/key.pem -out .keys/cert.cert -days 36500 -subj '/CN=www.mydom.com/O=My Company Name LTD./C=US' -outform DER -passout pass:test
|
||||||
openssl x509 -inform DER -in cert.cert -out cert.pem
|
openssl x509 -inform DER -in .keys/cert.cert -out .keys/cert.pem
|
||||||
openssl pkcs12 -export -out cert.pfx -inkey key.pem -in cert.pem -passin pass:test -passout pass:test
|
openssl pkcs12 -export -out .keys/cert.pfx -inkey .keys/key.pem -in .keys/cert.pem -passin pass:test -passout pass:test
|
||||||
|
|
||||||
|
ls
|
||||||
|
|
Loading…
Reference in New Issue
Block a user