Add a script to generate bip.pem
This commit is contained in:
parent
afa77d12b5
commit
91f362391b
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue