premiere-libtorrent/test/ssl/regenerate_test_certificate.sh

26 lines
445 B
Bash
Raw Normal View History

2015-10-25 15:29:42 +01:00
#!/bin/sh
PATH=$PATH:/opt/local/etc/openssl/misc
rm -rf demoCA
printf "\n\n ======== use passphrase: test =========\n\n"
CA.sh -newca
cp ./demoCA/cacert.pem root_ca_cert.pem
cp ./demoCA/private/cakey.pem root_ca_private.pem
printf "\n\n ======== use common name: * =========\n\n"
CA.sh -newreq
cp newkey.pem peer_private_key.pem
CA.sh -sign
cp newcert.pem peer_certificate.pem
openssl dhparam -outform PEM -out dhparams.pem 2048