diff --git a/scripts/make_cert.cnf b/scripts/make_cert.cnf new file mode 100644 index 0000000..21d2b5a --- /dev/null +++ b/scripts/make_cert.cnf @@ -0,0 +1,17 @@ +HOME = . + +[ req ] +distinguished_name = dn +x509_extensions = v3_bip +default_md = sha1 +prompt = no + +[ dn ] +C=FR +O=Sexy boys +OU=Bip +CN=Bip + +[ v3_bip ] +subjectKeyIdentifier=hash +authorityKeyIdentifier=keyid:always diff --git a/scripts/make_cert.sh b/scripts/make_cert.sh new file mode 100755 index 0000000..8e368fe --- /dev/null +++ b/scripts/make_cert.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +openssl req -new -x509 -days 365 -nodes \ + -config make_cert.cnf -out bip.pem -keyout bip.pem +#RANDOM_FILE=/dev/urandom +#openssl gendh -rand $(RANDOM_FILE) 512 >> bip.pem +#openssl gendh 512 >> bip.pem +openssl x509 -subject -dates -fingerprint -noout -in bip.pem