| Index: chrome/test/data/extensions/api_test/platform_keys/basic.js
|
| diff --git a/chrome/test/data/extensions/api_test/platform_keys/basic.js b/chrome/test/data/extensions/api_test/platform_keys/basic.js
|
| index 5e1eccba7034db7c37eeb5783f72fc9da5c91f0f..ee4516d378c40dcafcb8404533bf3f1ed4a1d510 100644
|
| --- a/chrome/test/data/extensions/api_test/platform_keys/basic.js
|
| +++ b/chrome/test/data/extensions/api_test/platform_keys/basic.js
|
| @@ -36,39 +36,38 @@ var data = {
|
|
|
| // X.509 client certificate in DER encoding.
|
| // Algorithm in SPKI: rsaEncryption.
|
| - // openssl x509 -in net/data/ssl/certificates/client_1.pem -outform DER -out
|
| - // client_1.der
|
| + // Generated by create_net_cert_data.sh .
|
| client_1: 'client_1.der',
|
|
|
| // X.509 client certificate in DER encoding.
|
| // Algorithm in SPKI: rsaEncryption.
|
| - // openssl x509 -in net/data/ssl/certificates/client_2.pem -outform DER -out
|
| - // client_2.der
|
| + // Generated by create_net_cert_data.sh .
|
| client_2: 'client_2.der',
|
|
|
| // The public key of client_1 as Subject Public Key Info in DER encoding.
|
| - // openssl rsa -in net/data/ssl/certificates/client_1.key -inform PEM -out
|
| - // pubkey.der -pubout -outform DER
|
| + // Generated by create_net_cert_data.sh .
|
| client_1_spki: 'client_1_spki.der',
|
|
|
| // The distinguished name of the CA that issued client_1 in DER encoding.
|
| - // openssl asn1parse -in client_1.der -inform DER -strparse 32 -out
|
| - // client_1_issuer_dn.der
|
| + // Generated by create_net_cert_data.sh .
|
| client_1_issuer_dn: 'client_1_issuer_dn.der',
|
|
|
| - // echo -n "hello world" > data
|
| + // The string "hello world".
|
| + // Generated by create_net_cert_data.sh .
|
| raw_data: 'data',
|
|
|
| - // openssl rsautl -inkey net/data/ssl/certificates/client_1.key -sign -in
|
| - // data -pkcs -out signature_nohash_pkcs
|
| + // A signature of raw_data using RSASSA-PKCS1-v1_5 with client_1, but treating
|
| + // raw_data as a raw digest and without adding the DigestInfo prefix.
|
| + // Generated by create_net_cert_data.sh .
|
| signature_nohash_pkcs: 'signature_nohash_pkcs',
|
|
|
| - // openssl dgst -sha1 -sign net/data/ssl/certificates/client_1.key
|
| - // -out signature_sha1_pkcs data
|
| + // A signature of raw_data using RSASSA-PKCS1-v1_5 with client_1, using SHA-1
|
| + // as the hash function.
|
| + // Generated by create_net_cert_data.sh .
|
| signature_sha1_pkcs: 'signature_sha1_pkcs',
|
| };
|
|
|
| -// Reads the binary file at |path| and passes it as a Uin8Array to |callback|.
|
| +// Reads the binary file at |path| and passes it as a Uint8Array to |callback|.
|
| function readFile(path, callback) {
|
| var oReq = new XMLHttpRequest();
|
| oReq.responseType = "arraybuffer";
|
|
|