summaryrefslogtreecommitdiff
path: root/test/fixtures/keys
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2015-12-05 16:53:30 -0500
committerFedor Indutny <fedor@indutny.com>2015-12-17 20:22:40 -0500
commita2c1799a5b68dbf411785606345e166ad8acd607 (patch)
treef0556b6d1c832b34cdabded96a5ccaabe75ca112 /test/fixtures/keys
parent56985ca258577b72cbd0a5f9029702d0ed320d86 (diff)
downloadandroid-node-v8-a2c1799a5b68dbf411785606345e166ad8acd607.tar.gz
android-node-v8-a2c1799a5b68dbf411785606345e166ad8acd607.tar.bz2
android-node-v8-a2c1799a5b68dbf411785606345e166ad8acd607.zip
crypto: load PFX chain the same way as regular one
Load the certificate chain from the PFX file the same as we do it for a regular certificate chain. Fix: #4127 PR-URL: https://github.com/nodejs/node/pull/4165 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test/fixtures/keys')
-rw-r--r--test/fixtures/keys/Makefile8
-rw-r--r--test/fixtures/keys/agent1-pfx.pembin0 -> 2437 bytes
2 files changed, 8 insertions, 0 deletions
diff --git a/test/fixtures/keys/Makefile b/test/fixtures/keys/Makefile
index 143986274a..1148e529cd 100644
--- a/test/fixtures/keys/Makefile
+++ b/test/fixtures/keys/Makefile
@@ -79,6 +79,14 @@ agent1-cert.pem: agent1-csr.pem ca1-cert.pem ca1-key.pem
-CAcreateserial \
-out agent1-cert.pem
+agent1-pfx.pem: agent1-cert.pem agent1-key.pem ca1-cert.pem
+ openssl pkcs12 -export \
+ -in agent1-cert.pem \
+ -inkey agent1-key.pem \
+ -certfile ca1-cert.pem \
+ -out agent1-pfx.pem \
+ -password pass:sample
+
agent1-verify: agent1-cert.pem ca1-cert.pem
openssl verify -CAfile ca1-cert.pem agent1-cert.pem
diff --git a/test/fixtures/keys/agent1-pfx.pem b/test/fixtures/keys/agent1-pfx.pem
new file mode 100644
index 0000000000..a36e746a72
--- /dev/null
+++ b/test/fixtures/keys/agent1-pfx.pem
Binary files differ