2012-08-10 22:02:46 +04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# gencrls, crl config already done, see taoCerts.txt for setup
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# caCrl
|
2014-07-22 01:13:37 +04:00
|
|
|
openssl ca -config ../renewcerts/cyassl.cnf -gencrl -crldays 365 -out crl.pem -keyfile ../ca-key.pem -cert ../ca-cert.pem
|
2012-08-10 22:02:46 +04:00
|
|
|
|
|
|
|
# metadata
|
|
|
|
openssl crl -in crl.pem -text > tmp
|
|
|
|
mv tmp crl.pem
|
2014-07-22 01:13:37 +04:00
|
|
|
# install (only needed if working outside cyassl)
|
|
|
|
#cp crl.pem ~/cyassl/certs/crl/crl.pem
|
2012-08-10 22:02:46 +04:00
|
|
|
|
|
|
|
# caCrl server revoked
|
2014-07-22 01:13:37 +04:00
|
|
|
openssl ca -config ../renewcerts/cyassl.cnf -revoke ../server-cert.pem -keyfile ../ca-key.pem -cert ../ca-cert.pem
|
2012-08-10 22:02:46 +04:00
|
|
|
|
|
|
|
# caCrl server revoked generation
|
2014-07-22 01:13:37 +04:00
|
|
|
openssl ca -config ../renewcerts/cyassl.cnf -gencrl -crldays 365 -out crl.revoked -keyfile ../ca-key.pem -cert ../ca-cert.pem
|
2012-08-10 22:02:46 +04:00
|
|
|
|
|
|
|
# metadata
|
|
|
|
openssl crl -in crl.revoked -text > tmp
|
|
|
|
mv tmp crl.revoked
|
2014-07-22 01:13:37 +04:00
|
|
|
# install (only needed if working outside cyassl)
|
|
|
|
#cp crl.revoked ~/cyassl/certs/crl/crl.revoked
|
2012-08-10 22:02:46 +04:00
|
|
|
|
|
|
|
# remove revoked so next time through the normal CA won't have server revoked
|
|
|
|
cp blank.index.txt demoCA/index.txt
|
|
|
|
|
|
|
|
# cliCrl
|
2014-07-22 01:13:37 +04:00
|
|
|
openssl ca -config ../renewcerts/cyassl.cnf -gencrl -crldays 365 -out cliCrl.pem -keyfile ../client-key.pem -cert ../client-cert.pem
|
2012-08-10 22:02:46 +04:00
|
|
|
|
|
|
|
# metadata
|
|
|
|
openssl crl -in cliCrl.pem -text > tmp
|
|
|
|
mv tmp cliCrl.pem
|
2014-07-22 01:13:37 +04:00
|
|
|
# install (only needed if working outside cyassl)
|
|
|
|
#cp cliCrl.pem ~/cyassl/certs/crl/cliCrl.pem
|
2012-08-10 22:02:46 +04:00
|
|
|
|
|
|
|
# eccCliCRL
|
2014-07-22 01:13:37 +04:00
|
|
|
openssl ca -config ../renewcerts/cyassl.cnf -gencrl -crldays 365 -out eccCliCRL.pem -keyfile ../ecc-client-key.pem -cert ../client-ecc-cert.pem
|
2012-08-10 22:02:46 +04:00
|
|
|
|
|
|
|
# metadata
|
|
|
|
openssl crl -in eccCliCRL.pem -text > tmp
|
|
|
|
mv tmp eccCliCRL.pem
|
2014-07-22 01:13:37 +04:00
|
|
|
# install (only needed if working outside cyassl)
|
|
|
|
#cp eccCliCRL.pem ~/cyassl/certs/crl/eccCliCRL.pem
|
2012-08-10 22:02:46 +04:00
|
|
|
|
|
|
|
# eccSrvCRL
|
2014-07-22 01:13:37 +04:00
|
|
|
openssl ca -config ../renewcerts/cyassl.cnf -gencrl -crldays 365 -out eccSrvCRL.pem -keyfile ../ecc-key.pem -cert ../server-ecc.pem
|
2012-08-10 22:02:46 +04:00
|
|
|
|
|
|
|
# metadata
|
|
|
|
openssl crl -in eccSrvCRL.pem -text > tmp
|
|
|
|
mv tmp eccSrvCRL.pem
|
2014-07-22 01:13:37 +04:00
|
|
|
# install (only needed if working outside cyassl)
|
|
|
|
#cp eccSrvCRL.pem ~/cyassl/certs/crl/eccSrvCRL.pem
|
2012-08-10 22:02:46 +04:00
|
|
|
|