File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 183
183
# 2017-01-29 issue #232 use neutral locale for date formatting (2.07)
184
184
# 2017-01-30 issue #243 compatibility with bash 3.0 (2.08)
185
185
# 2017-01-30 issue #243 additional compatibility with bash 3.0 (2.09)
186
+ # 2017-02-18 add OCSP Must-Staple to the domain csr generation (2.10)
186
187
# ----------------------------------------------------------------------------------------
187
188
188
189
PROGNAME=${0##*/ }
189
- VERSION=" 2.09 "
190
+ VERSION=" 2.10 "
190
191
191
192
# defaults
192
193
ACCOUNT_KEY_LENGTH=4096
@@ -218,6 +219,7 @@ REUSE_PRIVATE_KEY="true"
218
219
SERVER_TYPE=" https"
219
220
SKIP_HTTP_TOKEN_CHECK=" false"
220
221
SSLCONF=" $( openssl version -d 2> /dev/null| cut -d\" -f2) /openssl.cnf"
222
+ OCSP_MUST_STAPLE=" false"
221
223
TEMP_UPGRADE_FILE=" "
222
224
TOKEN_USER_ID=" "
223
225
USE_SINGLE_ACL=" false"
@@ -620,6 +622,11 @@ create_csr() { # create a csr using a given key (if it doesn't already exist)
620
622
tmp_conf=$( mktemp)
621
623
cat " $SSLCONF " > " $tmp_conf "
622
624
printf " [SAN]\n%s" " $SANLIST " >> " $tmp_conf "
625
+ # add OCSP Must-Staple to the domain csr
626
+ # if openssl version >= 1.1.0 one can also use "tlsfeature = status_request"
627
+ if [[ " $OCSP_MUST_STAPLE " == " true" ]]; then
628
+ printf " \n1.3.6.1.5.5.7.1.24 = DER:30:03:02:01:05" >> " $tmp_conf "
629
+ fi
623
630
openssl req -new -sha256 -key " $csr_key " -subj " $CSR_SUBJECT " -reqexts SAN -config " $tmp_conf " > " $csr_file "
624
631
rm -f " $tmp_conf "
625
632
fi
You can’t perform that action at this time.
0 commit comments