-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautoCreateCrl.sh
More file actions
19 lines (18 loc) · 896 Bytes
/
autoCreateCrl.sh
File metadata and controls
19 lines (18 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
#-------------------------------------------------------
# Requirement: `openssl`
# Note: `openssl` commond is used.
#-------------------------------------------------------
# Function: Use OpenSSL to generate a CRL from a
# configuration file.
# Platform: Compatible, all OS and arch.
#
# Filename: autoCreateCrl.sh
# Revision: 1.0.1
# Date: February 22, 2023
# Author: Signaliks
# Email: i@iks.moe
#-------------------------------------------------------
# `-out` is the output path of the CRL file, and `-config` is the path of the root certificate PKI config file.
openssl ca -gencrl -out /www/wwwroot/pki.iks.moe/static/crl/YoungdoRootCA.crl -config /root/CA/RootCA/rootca.cnf
openssl ca -gencrl -out /www/wwwroot/pki.iks.moe/static/crl/YoungdoSecureCodeSigningCAR2.crl -config /root/CA/codesignov/powerca.cnf