Add a script to generate bip.pem

This commit is contained in:
kyoshiro 2006-11-15 16:18:56 +00:00
parent afa77d12b5
commit 91f362391b
2 changed files with 25 additions and 0 deletions

17
scripts/make_cert.cnf Normal file
View File

@ -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

8
scripts/make_cert.sh Executable file
View File

@ -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