|
|
|
@ -23,10 +23,10 @@ setup() { |
|
|
|
setup_environment |
|
|
|
init_getssl |
|
|
|
sed -e 's/rsa/prime256v1/g' < "${CODE_DIR}/test/test-config/${CONFIG_FILE}" > "${INSTALL_DIR}/.getssl/${GETSSL_HOST}/getssl.cfg" |
|
|
|
run ${CODE_DIR}/getssl "$GETSSL_HOST" |
|
|
|
run ${CODE_DIR}/getssl -d "$GETSSL_HOST" |
|
|
|
assert_success |
|
|
|
refute_output --regexp '[Ff][Aa][Ii][Ll][Ee][Dd]' |
|
|
|
refute_output --regexp '[Ee][Rr][Rr][Oo][Rr]' |
|
|
|
refute_output --regexp '[^:][Ee][Rr][Rr][Oo][Rr][^:]' |
|
|
|
refute_output --regexp '[Ww][Aa][Rr][Nn][Ii][Nn][Gg]' |
|
|
|
} |
|
|
|
|
|
|
|
@ -35,10 +35,10 @@ setup() { |
|
|
|
if [ -z "$STAGING" ]; then |
|
|
|
skip "Running internal tests, skipping external test" |
|
|
|
fi |
|
|
|
run ${CODE_DIR}/getssl -f $GETSSL_HOST |
|
|
|
run ${CODE_DIR}/getssl -d -f $GETSSL_HOST |
|
|
|
assert_success |
|
|
|
refute_output --regexp '[Ff][Aa][Ii][Ll][Ee][Dd]' |
|
|
|
refute_output --regexp '[Ee][Rr][Rr][Oo][Rr]' |
|
|
|
refute_output --regexp '[^:][Ee][Rr][Rr][Oo][Rr][^:]' |
|
|
|
refute_output --regexp '[Ww][Aa][Rr][Nn][Ii][Nn][Gg]' |
|
|
|
cleanup_environment |
|
|
|
} |
|
|
|
@ -54,10 +54,10 @@ setup() { |
|
|
|
setup_environment |
|
|
|
init_getssl |
|
|
|
sed -e 's/rsa/secp384r1/g' < "${CODE_DIR}/test/test-config/${CONFIG_FILE}" > "${INSTALL_DIR}/.getssl/${GETSSL_HOST}/getssl.cfg" |
|
|
|
run ${CODE_DIR}/getssl "$GETSSL_HOST" |
|
|
|
run ${CODE_DIR}/getssl -d "$GETSSL_HOST" |
|
|
|
assert_success |
|
|
|
refute_output --regexp '[Ff][Aa][Ii][Ll][Ee][Dd]' |
|
|
|
refute_output --regexp '[Ee][Rr][Rr][Oo][Rr]' |
|
|
|
refute_output --regexp '[^:][Ee][Rr][Rr][Oo][Rr][^:]' |
|
|
|
refute_output --regexp '[Ww][Aa][Rr][Nn][Ii][Nn][Gg]' |
|
|
|
} |
|
|
|
|
|
|
|
@ -66,38 +66,13 @@ setup() { |
|
|
|
if [ -z "$STAGING" ]; then |
|
|
|
skip "Running internal tests, skipping external test" |
|
|
|
fi |
|
|
|
run ${CODE_DIR}/getssl -f $GETSSL_HOST |
|
|
|
run ${CODE_DIR}/getssl -d -f $GETSSL_HOST |
|
|
|
assert_success |
|
|
|
refute_output --regexp '[Ff][Aa][Ii][Ll][Ee][Dd]' |
|
|
|
refute_output --regexp '[Ee][Rr][Rr][Oo][Rr]' |
|
|
|
refute_output --regexp '[^:][Ee][Rr][Rr][Oo][Rr][^:]' |
|
|
|
refute_output --regexp '[Ww][Aa][Rr][Nn][Ii][Nn][Gg]' |
|
|
|
cleanup_environment |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@test "Create new certificate using staging server and secp521r1" { |
|
|
|
skip "The staging server returns 'ECDSA curve P-521 not allowed'" |
|
|
|
|
|
|
|
CONFIG_FILE="getssl-duckdns01.cfg" |
|
|
|
GETSSL_HOST=getssl.duckdns.org |
|
|
|
|
|
|
|
setup_environment |
|
|
|
init_getssl |
|
|
|
sed -e 's/rsa/secp521r1/g' < "${CODE_DIR}/test/test-config/${CONFIG_FILE}" > "${INSTALL_DIR}/.getssl/${GETSSL_HOST}/getssl.cfg" |
|
|
|
run ${CODE_DIR}/getssl "$GETSSL_HOST" |
|
|
|
assert_success |
|
|
|
refute_output --regexp '[Ff][Aa][Ii][Ll][Ee][Dd]' |
|
|
|
refute_output --regexp '[Ee][Rr][Rr][Oo][Rr]' |
|
|
|
refute_output --regexp '[Ww][Aa][Rr][Nn][Ii][Nn][Gg]' |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@test "Force renewal of certificate using staging server and secp521r1" { |
|
|
|
skip "The staging server returns 'ECDSA curve P-521 not allowed'" |
|
|
|
run ${CODE_DIR}/getssl -f $GETSSL_HOST |
|
|
|
assert_success |
|
|
|
refute_output --regexp '[Ff][Aa][Ii][Ll][Ee][Dd]' |
|
|
|
refute_output --regexp '[Ee][Rr][Rr][Oo][Rr]' |
|
|
|
refute_output --regexp '[Ww][Aa][Rr][Nn][Ii][Nn][Gg]' |
|
|
|
cleanup_environment |
|
|
|
} |
|
|
|
# Note letsencrypt doesn't support ECDSA curve P-521 as it's being deprecated |