summaryrefslogtreecommitdiffstats
path: root/net/data/ssl
diff options
context:
space:
mode:
authorpneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-17 13:21:49 +0000
committerpneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-17 13:21:49 +0000
commita1e527df3f81a080bef913bedf986aa980c364ef (patch)
treeb02b0d9ee471e571abb786bb0b379ae75ce8afaf /net/data/ssl
parent86a03daabe6e9ca8e203b48cc39b190e49bdba46 (diff)
downloadchromium_src-a1e527df3f81a080bef913bedf986aa980c364ef.zip
chromium_src-a1e527df3f81a080bef913bedf986aa980c364ef.tar.gz
chromium_src-a1e527df3f81a080bef913bedf986aa980c364ef.tar.bz2
Upload pk8 key files for ClientCertStoreChromeOS unittest.
This uploads key files before changing the unit test, as the Commit-Queue has problems with binary files. Main CL will be committed afterwards: https://codereview.chromium.org/394013005/ BUG=210525, 329735, 315285 TBR=rsleevi@chromium.org Review URL: https://codereview.chromium.org/399103002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/data/ssl')
-rw-r--r--net/data/ssl/certificates/README4
-rw-r--r--net/data/ssl/certificates/client_1.pk8bin0 -> 1218 bytes
-rw-r--r--net/data/ssl/certificates/client_2.pk8bin0 -> 1218 bytes
-rwxr-xr-xnet/data/ssl/scripts/generate-client-certificates.sh8
4 files changed, 12 insertions, 0 deletions
diff --git a/net/data/ssl/certificates/README b/net/data/ssl/certificates/README
index 9634a28..17247f3 100644
--- a/net/data/ssl/certificates/README
+++ b/net/data/ssl/certificates/README
@@ -149,9 +149,11 @@ unit tests.
- client_1.pem
- client_1.key
+- client_1.pk8
- client_1_ca.pem
- client_2.pem
- client_2.key
+- client_2.pk8
- client_2_ca.pem
This is a set of files used to unit test SSL client certificate
authentication. These are generated by
@@ -162,6 +164,8 @@ unit tests.
private key for a first certificate signed by client_1_ca.pem.
- client_2.pem and client_2.key correspond to the certificate and
private key for a second certificate signed by client_2_ca.pem.
+ - each .pk8 file contains the same key as the corresponding .key file
+ as PKCS#8 PrivateKeyInfo in DER encoding.
- eku-test-root.pem
- non-crit-codeSigning-chain.pem
diff --git a/net/data/ssl/certificates/client_1.pk8 b/net/data/ssl/certificates/client_1.pk8
new file mode 100644
index 0000000..4ed0532
--- /dev/null
+++ b/net/data/ssl/certificates/client_1.pk8
Binary files differ
diff --git a/net/data/ssl/certificates/client_2.pk8 b/net/data/ssl/certificates/client_2.pk8
new file mode 100644
index 0000000..027e26f
--- /dev/null
+++ b/net/data/ssl/certificates/client_2.pk8
Binary files differ
diff --git a/net/data/ssl/scripts/generate-client-certificates.sh b/net/data/ssl/scripts/generate-client-certificates.sh
index 7dce623..9ff313a 100755
--- a/net/data/ssl/scripts/generate-client-certificates.sh
+++ b/net/data/ssl/scripts/generate-client-certificates.sh
@@ -113,6 +113,12 @@ do
-key out/$id.key \
-out out/$id.csr \
-config client-certs.cnf
+ # Store the private key also in PKCS#8 format.
+ try openssl pkcs8 \
+ -topk8 -nocrypt \
+ -in out/$id.key \
+ -outform DER \
+ -out out/$id.pk8
done
echo B signs A
@@ -157,8 +163,10 @@ try openssl pkcs12 \
echo Package the client certs for unit tests
try cp out/A.pem ../certificates/client_1.pem
try cp out/A.key ../certificates/client_1.key
+try cp out/A.pk8 ../certificates/client_1.pk8
try cp out/B.pem ../certificates/client_1_ca.pem
try cp out/D.pem ../certificates/client_2.pem
try cp out/D.key ../certificates/client_2.key
+try cp out/D.pk8 ../certificates/client_2.pk8
try cp out/E.pem ../certificates/client_2_ca.pem