Skip to content

Commit e022adb

Browse files
author
Arthur O'Dwyer
committed
Create a "client-nopass.pem" for use with Python requests, and add it to the download page.
Partly addresses #369. Using a passphrase other than "badssl.com" for the other files would also be great, but is a larger change, I think.
1 parent 2f1a214 commit e022adb

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ certs-test:
4040
cp certs/sets/current/gen/crt/ca-untrusted-root.crt common/certs
4141
cp certs/sets/current/gen/crt/client.p12 common/certs/${TEST_DOMAIN}-client.p12
4242
cp certs/sets/current/gen/crt/client.pem common/certs/${TEST_DOMAIN}-client.pem
43+
cp certs/sets/current/gen/crt/client-nopass.pem common/certs/${TEST_DOMAIN}-client-nopass.pem
4344

4445
.PHONY: certs-prod
4546
certs-prod:
@@ -50,6 +51,7 @@ certs-prod:
5051
cp certs/sets/current/gen/crt/ca-untrusted-root.crt common/certs
5152
cp certs/sets/current/gen/crt/client.p12 common/certs/${PROD_DOMAIN}-client.p12
5253
cp certs/sets/current/gen/crt/client.pem common/certs/${PROD_DOMAIN}-client.pem
54+
cp certs/sets/current/gen/crt/client-nopass.pem common/certs/${PROD_DOMAIN}-client-nopass.pem
5355

5456
.PHONY: clean-certs
5557
clean-certs:

certs/Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ $(O)/gen/crt/client.p12: $(O)/gen/crt/client.crt $(O)/gen/key/client.key
7373
./tool gen-pkcs12-p12 $@ $(D) $^
7474
$(O)/gen/crt/client.pem: $(O)/gen/crt/client.p12
7575
./tool pkcs12-convert-p12-pem $@ $(D) $^
76+
$(O)/gen/crt/client-nopass.pem: $(O)/gen/crt/client.p12
77+
./tool pkcs12-convert-p12-pem-nopass $@ $(D) $^
7678
CHAINS_PROD += $(O)/gen/crt/client.pem
79+
CHAINS_PROD += $(O)/gen/crt/client-nopass.pem
7780

7881
################################
7982
$(O)/gen/key/ca-untrusted-root.key:

certs/tool

+7
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ pkcs12-convert-p12-pem)
7272
-passout "pass:$DOMAIN" \
7373
-in $1
7474
;;
75+
pkcs12-convert-p12-pem-nopass)
76+
openssl pkcs12 \
77+
-out $OUT \
78+
-clcerts \
79+
-passin "pass:$DOMAIN" \
80+
-in $1
81+
;;
7582
self-sign)
7683
openssl x509 -req -CAcreateserial \
7784
-out $OUT \

domains/misc/badssl.com/download/index.html

+6-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h2>Client Certificates</h2>
2222
<table>
2323
<thead>
2424
<td>Download</td>
25-
<td>Password</td>
25+
<td>Passphrase</td>
2626
<td>Format</td>
2727
</thead>
2828
<tbody>
@@ -36,6 +36,11 @@ <h2>Client Certificates</h2>
3636
<td><b><code>{{ site.domain }}</code></b></td>
3737
<td>PEM</td>
3838
</tr>
39+
<tr>
40+
<td><a href="/certs/{{ site.domain }}-client-nopass.pem">{{ site.domain }}-client-nopass.pem</a></td>
41+
<td>&mdash;</td>
42+
<td>PEM</td>
43+
</tr>
3944
</tbody>
4045
</table>
4146
</div>

0 commit comments

Comments
 (0)