From 91f362391bad11f86970a74fd535d54c7e8aca97 Mon Sep 17 00:00:00 2001 From: kyoshiro Date: Wed, 15 Nov 2006 16:18:56 +0000 Subject: [PATCH] Add a script to generate bip.pem --- scripts/make_cert.cnf | 17 +++++++++++++++++ scripts/make_cert.sh | 8 ++++++++ 2 files changed, 25 insertions(+) create mode 100644 scripts/make_cert.cnf create mode 100755 scripts/make_cert.sh 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