diff --git a/Makefile b/Makefile index 5d80d3aa..9f23115a 100644 --- a/Makefile +++ b/Makefile @@ -41,6 +41,7 @@ certs-test: cp certs/sets/current/gen/crt/ca-untrusted-root.crt common/certs cp certs/sets/current/gen/crt/client.p12 common/certs/${TEST_DOMAIN}-client.p12 cp certs/sets/current/gen/crt/client.pem common/certs/${TEST_DOMAIN}-client.pem + cp certs/sets/current/gen/crt/client-nopass.pem common/certs/${TEST_DOMAIN}-client-nopass.pem .PHONY: certs-prod certs-prod: @@ -51,6 +52,7 @@ certs-prod: cp certs/sets/current/gen/crt/ca-untrusted-root.crt common/certs cp certs/sets/current/gen/crt/client.p12 common/certs/${PROD_DOMAIN}-client.p12 cp certs/sets/current/gen/crt/client.pem common/certs/${PROD_DOMAIN}-client.pem + cp certs/sets/current/gen/crt/client-nopass.pem common/certs/${PROD_DOMAIN}-client-nopass.pem .PHONY: clean-certs clean-certs: diff --git a/certs/Makefile b/certs/Makefile index fc3565dd..8f4676c8 100644 --- a/certs/Makefile +++ b/certs/Makefile @@ -73,7 +73,10 @@ $(O)/gen/crt/client.p12: $(O)/gen/crt/client.crt $(O)/gen/key/client.key ./tool gen-pkcs12-p12 $@ $(D) $^ $(O)/gen/crt/client.pem: $(O)/gen/crt/client.p12 ./tool pkcs12-convert-p12-pem $@ $(D) $^ +$(O)/gen/crt/client-nopass.pem: $(O)/gen/crt/client.p12 + ./tool pkcs12-convert-p12-pem-nopass $@ $(D) $^ CHAINS_PROD += $(O)/gen/crt/client.pem +CHAINS_PROD += $(O)/gen/crt/client-nopass.pem ################################ $(O)/gen/key/ca-untrusted-root.key: diff --git a/certs/tool b/certs/tool index e10ba4d1..296ef230 100755 --- a/certs/tool +++ b/certs/tool @@ -72,6 +72,13 @@ pkcs12-convert-p12-pem) -passout "pass:$DOMAIN" \ -in $1 ;; +pkcs12-convert-p12-pem-nopass) + openssl pkcs12 \ + -out $OUT \ + -clcerts \ + -passin "pass:$DOMAIN" \ + -in $1 + ;; self-sign) openssl x509 -req -CAcreateserial \ -out $OUT \ diff --git a/domains/misc/badssl.com/download/index.html b/domains/misc/badssl.com/download/index.html index 7de67856..9435818b 100644 --- a/domains/misc/badssl.com/download/index.html +++ b/domains/misc/badssl.com/download/index.html @@ -22,7 +22,7 @@
Download | -Password | +Passphrase | Format | @@ -36,6 +36,11 @@{{ site.domain }} |
PEM | +
{{ site.domain }}-client-nopass.pem | +— | +PEM | +
client.p12
into Keychain Access.
+ macOS: drag {{ site.domain }}-client.p12
into Keychain Access.
client.p12
into the Your Certificates
+ Firefox: import {{ site.domain }}-client.p12
into the Your Certificates
section of the Certificate Manager.
client.pem
using the following command:{{ site.domain }}-client.pem
using the following command:yubico-piv-tool -a verify-pin -s 9a -a import-key -a import-cert -i {{ site.domain }}-client.pem