diff --git a/conf/cert-ecc-p8.key b/conf/cert-ecc-p8.key new file mode 100644 index 0000000..82791b9 --- /dev/null +++ b/conf/cert-ecc-p8.key @@ -0,0 +1,4 @@ +-----BEGIN PRIVATE KEY----- +MEECAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQcEJzAlAgEBBCBFtmkCc5xshaE4W3Lo +6MesxAONUzUE+mwo3DSN4agJjA== +-----END PRIVATE KEY----- diff --git a/conf/cert-ecc-priv.key b/conf/cert-ecc-priv.key new file mode 100644 index 0000000..1d46e90 --- /dev/null +++ b/conf/cert-ecc-priv.key @@ -0,0 +1,4 @@ +-----BEGIN EC PRIVATE KEY----- +MDECAQEEIEW2aQJznGyFoThbcujox6zEA41TNQT6bCjcNI3hqAmMoAoGCCqGSM49 +AwEH +-----END EC PRIVATE KEY----- diff --git a/conf/nginx.conf b/conf/nginx.conf index fca8377..93f4b1b 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -86,7 +86,7 @@ http { server_name localhost; ssl_certificate cert-ecc.pem; - ssl_certificate_key cert-ecc.key; + ssl_certificate_key cert-ecc-p8.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; @@ -235,7 +235,7 @@ http { server_name www.wolfssl.com; ssl_certificate cert-ecc.pem; - ssl_certificate_key cert-ecc.key; + ssl_certificate_key cert-ecc-priv.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; diff --git a/test.sh b/test.sh index f6f1d75..ab27fbd 100755 --- a/test.sh +++ b/test.sh @@ -4,7 +4,9 @@ NGINX_SRC="../nginx" if [ "$NGINX_BIN" = "" ]; then NGINX_BIN="${NGINX_SRC}/objs/nginx" fi -WOLFSSL_SOURCE="../wolfssl" +if [ "$WOLFSSL_SOURCE" = "" ]; then + WOLFSSL_SOURCE="../wolfssl" +fi WOLFSSL_CLIENT="./examples/client/client" WOLFSSL_OCSP_CERTS="${WOLFSSL_SOURCE}/certs/ocsp" NGINX_CONF="./conf" @@ -17,7 +19,8 @@ WN_OCSP_GOOD="$WN_PATH/conf/$OCSP_GOOD" WN_OCSP_BAD="$WN_PATH/conf/$OCSP_BAD" WN_LOGS="$WN_PATH/logs" WN_ERROR_LOG="$WN_LOGS/error.log" -if [ "$HOST" = "" ]; then +HOST="127.0.0.1" +if [ "$IPV6" != "" ]; then HOST="::ffff:127.0.0.1" fi