diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /dom/wifi/test/marionette/test_wifi_manage_server_certificate.js | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'dom/wifi/test/marionette/test_wifi_manage_server_certificate.js')
-rw-r--r-- | dom/wifi/test/marionette/test_wifi_manage_server_certificate.js | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/dom/wifi/test/marionette/test_wifi_manage_server_certificate.js b/dom/wifi/test/marionette/test_wifi_manage_server_certificate.js new file mode 100644 index 000000000..dfaf524b2 --- /dev/null +++ b/dom/wifi/test/marionette/test_wifi_manage_server_certificate.js @@ -0,0 +1,106 @@ +/* Any copyright is dedicated to the Public Domain. + * http://creativecommons.org/publicdomain/zero/1.0/ */ + +MARIONETTE_TIMEOUT = 60000; +MARIONETTE_HEAD_JS = 'head.js'; + +// Binary form of test certificate. +var testCertInfo = { + nickname: 'Test Certificate', + password: '', + usage: ['ServerCert'], + blob: [0x30, 0x82, 0x02, 0xae, 0x30, 0x82, 0x02, 0x17, + 0xa0, 0x03, 0x02, 0x01, 0x02, 0x02, 0x09, 0x00, + 0x92, 0x49, 0xe2, 0x62, 0x71, 0xf6, 0xc7, 0x92, + 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, + 0xf7, 0x0d, 0x01, 0x01, 0x05, 0x05, 0x00, 0x30, + 0x70, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, + 0x04, 0x06, 0x13, 0x02, 0x54, 0x57, 0x31, 0x0f, + 0x30, 0x0d, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, + 0x06, 0x54, 0x61, 0x69, 0x70, 0x65, 0x69, 0x31, + 0x10, 0x30, 0x0e, 0x06, 0x03, 0x55, 0x04, 0x0a, + 0x0c, 0x07, 0x4d, 0x6f, 0x7a, 0x69, 0x6c, 0x6c, + 0x61, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, + 0x04, 0x0b, 0x0c, 0x02, 0x51, 0x41, 0x31, 0x0e, + 0x30, 0x0c, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, + 0x05, 0x47, 0x65, 0x72, 0x72, 0x79, 0x31, 0x21, + 0x30, 0x1f, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, + 0xf7, 0x0d, 0x01, 0x09, 0x01, 0x16, 0x12, 0x67, + 0x63, 0x68, 0x61, 0x6e, 0x67, 0x40, 0x6d, 0x6f, + 0x7a, 0x69, 0x6c, 0x6c, 0x61, 0x2e, 0x63, 0x6f, + 0x6d, 0x30, 0x1e, 0x17, 0x0d, 0x31, 0x34, 0x30, + 0x35, 0x32, 0x33, 0x30, 0x39, 0x34, 0x32, 0x33, + 0x37, 0x5a, 0x17, 0x0d, 0x31, 0x37, 0x30, 0x35, + 0x32, 0x32, 0x30, 0x39, 0x34, 0x32, 0x33, 0x37, + 0x5a, 0x30, 0x70, 0x31, 0x0b, 0x30, 0x09, 0x06, + 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x54, 0x57, + 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55, 0x04, + 0x08, 0x0c, 0x06, 0x54, 0x61, 0x69, 0x70, 0x65, + 0x69, 0x31, 0x10, 0x30, 0x0e, 0x06, 0x03, 0x55, + 0x04, 0x0a, 0x0c, 0x07, 0x4d, 0x6f, 0x7a, 0x69, + 0x6c, 0x6c, 0x61, 0x31, 0x0b, 0x30, 0x09, 0x06, + 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x51, 0x41, + 0x31, 0x0e, 0x30, 0x0c, 0x06, 0x03, 0x55, 0x04, + 0x03, 0x0c, 0x05, 0x47, 0x65, 0x72, 0x72, 0x79, + 0x31, 0x21, 0x30, 0x1f, 0x06, 0x09, 0x2a, 0x86, + 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09, 0x01, 0x16, + 0x12, 0x67, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x40, + 0x6d, 0x6f, 0x7a, 0x69, 0x6c, 0x6c, 0x61, 0x2e, + 0x63, 0x6f, 0x6d, 0x30, 0x81, 0x9f, 0x30, 0x0d, + 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, + 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x81, 0x8d, + 0x00, 0x30, 0x81, 0x89, 0x02, 0x81, 0x81, 0x00, + 0xd3, 0xdb, 0x54, 0xcc, 0xca, 0x0b, 0xee, 0xf9, + 0x8a, 0x37, 0x0d, 0x06, 0x8b, 0x20, 0x00, 0x4a, + 0x55, 0x84, 0x90, 0x1a, 0xb7, 0x9c, 0x91, 0xb2, + 0x38, 0x6b, 0x8b, 0x32, 0x7a, 0x89, 0x9e, 0x79, + 0x71, 0x88, 0x43, 0x21, 0x94, 0x18, 0xa8, 0xfc, + 0xe3, 0x7a, 0x8a, 0xb3, 0xa1, 0xf7, 0x23, 0xe7, + 0x1a, 0xe3, 0xe7, 0x0d, 0xf1, 0x66, 0x21, 0x58, + 0x21, 0x85, 0x5b, 0x35, 0xec, 0x68, 0xd2, 0xfd, + 0x44, 0x76, 0x93, 0x05, 0xbb, 0x89, 0x7d, 0x92, + 0xf9, 0xce, 0x75, 0xa3, 0xeb, 0x39, 0xc1, 0x7d, + 0x7e, 0x50, 0xf9, 0xb8, 0x60, 0x61, 0xf7, 0x2f, + 0x54, 0x39, 0xfe, 0x8a, 0x20, 0xb2, 0x0d, 0x48, + 0x7f, 0x18, 0x0d, 0x02, 0xcc, 0x7b, 0x8e, 0x31, + 0xe9, 0xbe, 0xfc, 0x96, 0x2e, 0x63, 0x6f, 0xfa, + 0x4c, 0xc4, 0xcf, 0x8a, 0xe4, 0x13, 0x67, 0xf1, + 0xec, 0x3e, 0xd8, 0x23, 0xa1, 0xbf, 0x67, 0x71, + 0x02, 0x03, 0x01, 0x00, 0x01, 0xa3, 0x50, 0x30, + 0x4e, 0x30, 0x1d, 0x06, 0x03, 0x55, 0x1d, 0x0e, + 0x04, 0x16, 0x04, 0x14, 0x13, 0xe1, 0xac, 0xa4, + 0x75, 0x3d, 0x2c, 0x5f, 0xe5, 0x41, 0x42, 0x90, + 0x5a, 0x48, 0x5c, 0x46, 0xbc, 0x24, 0x8e, 0xa1, + 0x30, 0x1f, 0x06, 0x03, 0x55, 0x1d, 0x23, 0x04, + 0x18, 0x30, 0x16, 0x80, 0x14, 0x13, 0xe1, 0xac, + 0xa4, 0x75, 0x3d, 0x2c, 0x5f, 0xe5, 0x41, 0x42, + 0x90, 0x5a, 0x48, 0x5c, 0x46, 0xbc, 0x24, 0x8e, + 0xa1, 0x30, 0x0c, 0x06, 0x03, 0x55, 0x1d, 0x13, + 0x04, 0x05, 0x30, 0x03, 0x01, 0x01, 0xff, 0x30, + 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, + 0x0d, 0x01, 0x01, 0x05, 0x05, 0x00, 0x03, 0x81, + 0x81, 0x00, 0xaa, 0x6b, 0x62, 0x53, 0x74, 0x2a, + 0x20, 0x76, 0xab, 0xd2, 0x60, 0x06, 0xfd, 0x88, + 0xf5, 0x1c, 0x85, 0xe6, 0x57, 0xf1, 0xf0, 0x18, + 0x97, 0x7c, 0x70, 0xb8, 0xb4, 0x7c, 0xcc, 0x58, + 0x8d, 0xf4, 0x7c, 0xb6, 0x34, 0xcc, 0x15, 0x79, + 0xaf, 0x75, 0xa9, 0x0b, 0xd1, 0xea, 0xf8, 0x85, + 0x7c, 0xe8, 0x19, 0xe9, 0x13, 0x90, 0x84, 0x5f, + 0x21, 0x94, 0x0a, 0x4d, 0x15, 0xef, 0xd1, 0x16, + 0xd4, 0xba, 0x2c, 0x59, 0x1b, 0x83, 0x23, 0xf5, + 0xa5, 0xcd, 0xbd, 0xda, 0x32, 0x73, 0x46, 0x49, + 0x98, 0xf3, 0xfb, 0x50, 0x6e, 0x30, 0xd7, 0x3e, + 0x31, 0xd6, 0xe8, 0x65, 0x2f, 0x5a, 0xf1, 0x0f, + 0x7b, 0x0a, 0x21, 0x61, 0x8e, 0x45, 0x29, 0x4f, + 0x7a, 0x04, 0xda, 0x29, 0xfc, 0x6f, 0xc5, 0x5e, + 0xee, 0xe1, 0x0f, 0xd5, 0x4b, 0xb7, 0xc9, 0x6a, + 0x8e, 0x7c, 0x19, 0xef, 0x6e, 0x64, 0x98, 0xfe, + 0xe3, 0x35] +}; + +gTestSuite.doTestWithCertificate( + new Blob([new Uint8Array(testCertInfo.blob)]), + testCertInfo.password, + testCertInfo.nickname, + testCertInfo.usage +); |