some sample scripts to setup and maintain a basic CA with openssl
edit ca.cfg and ssl.cfg
- in
ca.cfg- settings in
req_distinguished_namesection nsCaRevocationUrl,crlDistributionPointsandauthorityInfoAccess(multiple occurrence, dito in the èxtension.*` files)new_oidsif required
- settings in
- in
ssl.cfgUMAILenv var
- CA name defaults to ... CA :-) but can can be adjusted (
ca.cfgandssl.cfg)
edit ths script and set the CN for the CA; then run:
./genCA.sh
./genOCSPsignCert.sh
./genCert.sh SERVERNAME [DNSALTNAME|IP [DNSALTNAME|IP [...]]]
this will use different extensions
./genCert.sh -[V|U] ...
./revokeCert.sh CN
port used in authorityInfoAccess must be set in the script!
./startOCSPserver.sh
test a existing cert
./testOCSPserver.sh [CN]
the ocsp check can be used with a serial too, not just with existing certs; just use -serial $SN instead of -cert $CERT
should be self-explanatory