Add a script to generate bip.pem
This commit is contained in:
parent
afa77d12b5
commit
91f362391b
17
scripts/make_cert.cnf
Normal file
17
scripts/make_cert.cnf
Normal 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
8
scripts/make_cert.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user