File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -1359,7 +1359,7 @@ install_data_to_pki() {
1359
1359
1360
1360
# Short circuit for x509-types-only
1361
1361
if [ "$context" = x509-types-only ]; then
1362
- verbose "install_data_to_pki x509-types-only COMPLETED"
1362
+ verbose "install_data_to_pki: x509-types-only COMPLETED"
1363
1363
return
1364
1364
fi
1365
1365
@@ -1485,11 +1485,17 @@ build_ca() {
1485
1485
x509=1
1486
1486
fi
1487
1487
1488
- # If encrypted then create the CA key with AES256 cipher
1489
- if [ "$EASYRSA_NO_PASS" ]; then
1490
- unset -v cipher
1488
+ # RAW mode must take priority
1489
+ if [ "$EASYRSA_RAW_CA" ]; then
1490
+ unset -v EASYRSA_NO_PASS EASYRSA_PASSOUT EASYRSA_PASSIN
1491
+ verbose "build-ca: CA password RAW method"
1491
1492
else
1492
- unset -v no_password
1493
+ # If encrypted then create the CA key with AES256 cipher
1494
+ if [ "$EASYRSA_NO_PASS" ]; then
1495
+ unset -v cipher
1496
+ else
1497
+ unset -v no_password
1498
+ fi
1493
1499
fi
1494
1500
1495
1501
# Test for existing CA, and complain if already present
@@ -1744,7 +1750,6 @@ build_ca: CA key password created via temp-files"
1744
1750
if easyrsa_openssl req -utf8 -new \
1745
1751
-key "$out_key_tmp" \
1746
1752
-out "$out_file_tmp" \
1747
- ${ssl_batch:+ -batch} \
1748
1753
${x509:+ -x509} \
1749
1754
${date_stamp:+ -days "$EASYRSA_CA_EXPIRE"} \
1750
1755
${EASYRSA_DIGEST:+ -"$EASYRSA_DIGEST"}
You can’t perform that action at this time.
0 commit comments