mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-03-21 00:29:01 +01:00
exclude root certificate from certificate chain
This commit is contained in:
3
test.sh
3
test.sh
@@ -214,7 +214,8 @@ _CHECK_LOG "${TMP2_URL}"
|
||||
_SUBTEST "Verifying file with full chain..."
|
||||
openssl x509 -in "certs/${TMP_URL}/fullchain.pem" -noout -text > /dev/null 2>> errorlog && _PASS || _FAIL
|
||||
_SUBTEST "Verifying certificate against CA certificate..."
|
||||
(openssl verify -verbose -CAfile "certs/${TMP_URL}/fullchain.pem" -purpose sslserver "certs/${TMP_URL}/fullchain.pem" 2>&1 || true) | (grep -v ': OK$' || true) >> errorlog 2>> errorlog && _PASS || _FAIL
|
||||
curl -s https://testca.kurz.pw/acme/issuer-cert | openssl x509 -inform DER -outform PEM > ca.pem
|
||||
(openssl verify -verbose -CAfile "ca.pem" -purpose sslserver "certs/${TMP_URL}/fullchain.pem" 2>&1 || true) | (grep -v ': OK$' || true) >> errorlog 2>> errorlog && _PASS || _FAIL
|
||||
_CHECK_ERRORLOG
|
||||
|
||||
# Revoke certificate using certificate key
|
||||
|
||||
Reference in New Issue
Block a user