Skip to content

Commit b661ab2

Browse files
committed
#535 Enable adding non-root NOC(ICA) certificates
Signed-off-by: Abdulbois <abdulbois.tursunov@dsr-corporation.com> Signed-off-by: Abdulbois <abdulbois123@gmail.com>
1 parent 77ef7f5 commit b661ab2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+4555
-354
lines changed

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,4 @@ networks:
122122
ipam:
123123
driver: default
124124
config:
125-
- subnet: 192.167.10.0/16
125+
- subnet: 192.167.10.0/24

integration_tests/cli/pki-noc-certs.sh

+71-7
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,33 @@ set -euo pipefail
22
source integration_tests/cli/common.sh
33

44
noc_root_cert_1_path="integration_tests/constants/noc_root_cert_1"
5-
noc_root_cert_1_subject="MFUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQxDjAMBgNVBAMMBU5PQy0x"
5+
noc_root_cert_1_subject="MIGCMQswCQYDVQQGEwJVUzERMA8GA1UECAwITmV3IFlvcmsxETAPBgNVBAcMCE5ldyBZb3JrMRgwFgYDVQQKDA9FeGFtcGxlIENvbXBhbnkxGTAXBgNVBAsMEFRlc3RpbmcgRGl2aXNpb24xGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQ=="
66
noc_root_cert_1_subject_key_id="44:EB:4C:62:6B:25:48:CD:A2:B3:1C:87:41:5A:08:E7:2B:B9:83:26"
7-
noc_root_cert_1_serial_number="217369606639495620450806539821422258966012867792"
8-
noc_root_cert_1_subject_as_text="CN=NOC-1,O=Internet Widgits Pty Ltd,ST=Some-State,C=AU"
7+
noc_root_cert_1_serial_number="1"
8+
noc_root_cert_1_subject_as_text="CN=www.example.com,OU=Testing Division,O=Example Company,L=New York,ST=New York,C=US"
99

1010
noc_root_cert_2_path="integration_tests/constants/noc_root_cert_2"
11-
noc_root_cert_2_subject="MFUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQxDjAMBgNVBAMMBU5PQy0y"
11+
noc_root_cert_2_subject="MIGCMQswCQYDVQQGEwJVUzERMA8GA1UECAwITmV3IFlvcmsxETAPBgNVBAcMCE5ldyBZb3JrMRgwFgYDVQQKDA9FeGFtcGxlIENvbXBhbnkxGTAXBgNVBAsMEFRlc3RpbmcgRGl2aXNpb24xGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQ=="
1212
noc_root_cert_2_subject_key_id="CF:E6:DD:37:2B:4C:B2:B9:A9:F2:75:30:1C:AA:B1:37:1B:11:7F:1B"
13-
noc_root_cert_2_serial_number="720401643293243343104681760462974770802745092176"
14-
noc_root_cert_2_subject_as_text="CN=NOC-2,O=Internet Widgits Pty Ltd,ST=Some-State,C=AU"
13+
noc_root_cert_2_serial_number="2"
14+
noc_root_cert_2_subject_as_text="CN=www.example.com,OU=Testing Division,O=Example Company,L=New York,ST=New York,C=US"
1515

1616
noc_root_cert_3_path="integration_tests/constants/noc_root_cert_3"
1717
noc_root_cert_3_subject="MFUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQxDjAMBgNVBAMMBU5PQy0z"
1818
noc_root_cert_3_subject_key_id="88:0D:06:D9:64:22:29:34:78:7F:8C:3B:AE:F5:08:93:86:8F:0D:20"
1919
noc_root_cert_3_serial_number="38457288443253426021793906708335409501754677187"
2020
noc_root_cert_3_subject_as_text="CN=NOC-3,O=Internet Widgits Pty Ltd,ST=Some-State,C=AU"
2121

22+
noc_cert_1_path="integration_tests/constants/noc_cert_1"
23+
noc_cert_1_subject="MIGCMQswCQYDVQQGEwJVUzERMA8GA1UECAwITmV3IFlvcmsxETAPBgNVBAcMCE5ldyBZb3JrMRgwFgYDVQQKDA9FeGFtcGxlIENvbXBhbnkxGTAXBgNVBAsMEFRlc3RpbmcgRGl2aXNpb24xGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQ=="
24+
noc_cert_1_subject_key_id="02:72:6E:BC:BB:EF:D6:BD:8D:9B:42:AE:D4:3C:C0:55:5F:66:3A:B3"
25+
noc_cert_1_serial_number="3"
26+
27+
noc_cert_2_path="integration_tests/constants/noc_cert_2"
28+
noc_cert_2_subject="MIGCMQswCQYDVQQGEwJVUzERMA8GA1UECAwITmV3IFlvcmsxETAPBgNVBAcMCE5ldyBZb3JrMRgwFgYDVQQKDA9FeGFtcGxlIENvbXBhbnkxGTAXBgNVBAsMEFRlc3RpbmcgRGl2aXNpb24xGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQ=="
29+
noc_cert_2_subject_key_id="87:48:A2:33:12:1F:51:5C:93:E6:90:40:4A:2C:AB:9E:D6:19:E5:AD"
30+
noc_cert_2_serial_number="4"
31+
2232
trustee_account="jack"
2333
second_trustee_account="alice"
2434

@@ -92,7 +102,7 @@ echo $result | jq
92102

93103
test_divider
94104

95-
echo "Try to add inermidiate cert using add-noc-x509-root-cert command"
105+
echo "Try to add intermediate cert using add-noc-x509-root-cert command"
96106
intermediate_path="integration_tests/constants/intermediate_cert"
97107
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-root-cert --certificate="$intermediate_path" --from $vendor_account --yes)
98108
check_response "$result" "\"code\": 414"
@@ -173,4 +183,58 @@ check_response "$result" "\"subjectKeyId\": \"$noc_root_cert_1_subject_key_id\""
173183
check_response "$result" "\"serialNumber\": \"$noc_root_cert_1_serial_number\""
174184
check_response "$result" "\"subjectAsText\": \"$noc_root_cert_1_subject_as_text\""
175185

186+
echo "Add first NOC certificate by vendor with VID = $vid"
187+
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-cert --certificate="$noc_cert_1_path" --from $vendor_account --yes)
188+
check_response "$result" "\"code\": 0"
189+
190+
echo "Request NOC certificate by VID = $vid"
191+
result=$(dcld query pki noc-x509-certs --vid="$vid")
192+
echo $result | jq
193+
check_response "$result" "\"subject\": \"$noc_cert_1_subject\""
194+
check_response "$result" "\"subjectKeyId\": \"$noc_cert_1_subject_key_id\""
195+
check_response "$result" "\"serialNumber\": \"$noc_cert_1_serial_number\""
196+
check_response "$result" "\"vid\": $vid"
197+
198+
test_divider
199+
200+
echo "Request all child certificates by Subject and SubjectKeyID"
201+
result=$(dcld query pki all-child-x509-certs --subject="$noc_root_cert_1_subject" --subject-key-id="$noc_root_cert_1_subject_key_id")
202+
echo $result | jq
203+
check_response "$result" "\"subject\": \"$noc_cert_1_subject\""
204+
check_response "$result" "\"subjectKeyId\": \"$noc_cert_1_subject_key_id\""
205+
206+
echo "Try to add intermediate with different VID = $vid_2"
207+
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-root-cert --certificate="$noc_cert_2_path" --from $vendor_account_2 --yes)
208+
check_response "$result" "\"code\": 439"
209+
210+
test_divider
211+
212+
echo "Add second NOC certificate by vendor with VID = $vid"
213+
result=$(echo "$passphrase" | dcld tx pki add-noc-x509-cert --certificate="$noc_cert_2_path" --from $vendor_account --yes)
214+
check_response "$result" "\"code\": 0"
215+
216+
echo "Request all NOC certificates"
217+
result=$(dcld query pki all-noc-x509-certs)
218+
echo $result | jq
219+
check_response "$result" "\"subject\": \"$noc_cert_1_subject\""
220+
check_response "$result" "\"subjectKeyId\": \"$noc_cert_1_subject_key_id\""
221+
check_response "$result" "\"serialNumber\": \"$noc_cert_1_serial_number\""
222+
check_response "$result" "\"subject\": \"$noc_cert_2_subject\""
223+
check_response "$result" "\"subjectKeyId\": \"$noc_cert_2_subject_key_id\""
224+
check_response "$result" "\"serialNumber\": \"$noc_cert_2_serial_number\""
225+
check_response "$result" "\"vid\": $vid"
226+
227+
echo "Request all approved certificates"
228+
result=$(dcld query pki all-x509-certs)
229+
check_response "$result" "\"subject\": \"$noc_root_cert_1_subject\""
230+
check_response "$result" "\"subjectKeyId\": \"$noc_root_cert_1_subject_key_id\""
231+
check_response "$result" "\"serialNumber\": \"$noc_root_cert_1_serial_number\""
232+
check_response "$result" "\"subject\": \"$noc_cert_1_subject\""
233+
check_response "$result" "\"subjectKeyId\": \"$noc_cert_1_subject_key_id\""
234+
check_response "$result" "\"serialNumber\": \"$noc_cert_1_serial_number\""
235+
check_response "$result" "\"subject\": \"$noc_cert_2_subject\""
236+
check_response "$result" "\"subjectKeyId\": \"$noc_cert_2_subject_key_id\""
237+
check_response "$result" "\"serialNumber\": \"$noc_cert_2_serial_number\""
238+
echo $result | jq
239+
176240
test_divider
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIICOTCCAd+gAwIBAgIBAzAKBggqhkjOPQQDAjCBgjELMAkGA1UEBhMCVVMxETAP
3+
BgNVBAgMCE5ldyBZb3JrMREwDwYDVQQHDAhOZXcgWW9yazEYMBYGA1UECgwPRXhh
4+
bXBsZSBDb21wYW55MRkwFwYDVQQLDBBUZXN0aW5nIERpdmlzaW9uMRgwFgYDVQQD
5+
DA93d3cuZXhhbXBsZS5jb20wIBcNMjQwMzAxMDY0NDE4WhgPMzAyMzA3MDMwNjQ0
6+
MThaMIGCMQswCQYDVQQGEwJVUzERMA8GA1UECAwITmV3IFlvcmsxETAPBgNVBAcM
7+
CE5ldyBZb3JrMRgwFgYDVQQKDA9FeGFtcGxlIENvbXBhbnkxGTAXBgNVBAsMEFRl
8+
c3RpbmcgRGl2aXNpb24xGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbTBZMBMGByqG
9+
SM49AgEGCCqGSM49AwEHA0IABM49jq9u+/yejw1wh19r8xuQl6kWRRx85jKbSBqM
10+
vbKmHxr/CTRGliov4z4oniiNrvSgor+KAGYSK1EPhUHeZdCjQjBAMB0GA1UdDgQW
11+
BBQCcm68u+/WvY2bQq7UPMBVX2Y6szAfBgNVHSMEGDAWgBRE60xiayVIzaKzHIdB
12+
WgjnK7mDJjAKBggqhkjOPQQDAgNIADBFAiAE9y8XdiA4kxwtY2vDS4HVkdoj5wyS
13+
P3NimycxtXsj9AIhALjQsYWHp7+kr75SgNIKgav7Fr3fxEFvWca8oWMxM1PA
14+
-----END CERTIFICATE-----
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
-----BEGIN CERTIFICATE-----
2+
MIICODCCAd+gAwIBAgIBBDAKBggqhkjOPQQDAjCBgjELMAkGA1UEBhMCVVMxETAP
3+
BgNVBAgMCE5ldyBZb3JrMREwDwYDVQQHDAhOZXcgWW9yazEYMBYGA1UECgwPRXhh
4+
bXBsZSBDb21wYW55MRkwFwYDVQQLDBBUZXN0aW5nIERpdmlzaW9uMRgwFgYDVQQD
5+
DA93d3cuZXhhbXBsZS5jb20wIBcNMjQwMzAxMDY0NTA4WhgPMzAyMzA3MDMwNjQ1
6+
MDhaMIGCMQswCQYDVQQGEwJVUzERMA8GA1UECAwITmV3IFlvcmsxETAPBgNVBAcM
7+
CE5ldyBZb3JrMRgwFgYDVQQKDA9FeGFtcGxlIENvbXBhbnkxGTAXBgNVBAsMEFRl
8+
c3RpbmcgRGl2aXNpb24xGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbTBZMBMGByqG
9+
SM49AgEGCCqGSM49AwEHA0IABPkfJY7a758L6ES/WRTObOP6WuhFM3pZk7K06vjf
10+
3A72cAAjHbQ+W8uzFtFmQsNnrXBcRIb26KZMLGdRMWWv2b2jQjBAMB0GA1UdDgQW
11+
BBSHSKIzEh9RXJPmkEBKLKue1hnlrTAfBgNVHSMEGDAWgBTP5t03K0yyuanydTAc
12+
qrE3GxF/GzAKBggqhkjOPQQDAgNHADBEAiA/fduC6XJ8RGH2FCk0V7YDjAQCC3Vg
13+
Cxv0F/nTvM9ZlAIgW5x5vOhKRXEb1ak8j7SsX8ZO9aBYyLqs91dmOnHM2XM=
14+
-----END CERTIFICATE-----
+78-36
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,38 @@
11
package testconstants
22

33
const (
4-
NocRootCert1 = `
5-
-----BEGIN CERTIFICATE-----
6-
MIICATCCAaegAwIBAgIUJhMwtZzr6dGO6tqHmuDi4Bz/tNAwCgYIKoZIzj0EAwIw
7-
VTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGElu
8-
dGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEOMAwGA1UEAwwFTk9DLTEwIBcNMjQwMjE0
9-
MTQ0NzI1WhgPMzAyMzA2MTcxNDQ3MjVaMFUxCzAJBgNVBAYTAkFVMRMwEQYDVQQI
10-
DApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQx
11-
DjAMBgNVBAMMBU5PQy0xMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAECsW1A5xK
12-
Tv4qbfUsUp74bQNlkJV6GZL59b+PgqLyq7P1PMtJK3L7NmisUvdsT1dYr1sMzDEK
13-
6ZuajkpkIfeV3qNTMFEwHQYDVR0OBBYEFETrTGJrJUjNorMch0FaCOcruYMmMB8G
14-
A1UdIwQYMBaAFETrTGJrJUjNorMch0FaCOcruYMmMA8GA1UdEwEB/wQFMAMBAf8w
15-
CgYIKoZIzj0EAwIDSAAwRQIgS4gxVvmQghH93BbG3RRpJ07Re5+gTFAo5qfVTtDo
16-
teUCIQCQwlaPb8U8S0ee3Iz1gg4LOTxZ/IWyCzPpCteAEKcl+w==
17-
-----END CERTIFICATE-----
18-
`
19-
NocRootCert2 = `
20-
-----BEGIN CERTIFICATE-----
21-
MIICATCCAaegAwIBAgIUfi/tSwkm8n1SVPVYvpmRj7WDKFAwCgYIKoZIzj0EAwIw
22-
VTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGElu
23-
dGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEOMAwGA1UEAwwFTk9DLTIwIBc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GzAfBgNVHSMEGDAWgBTP5t03K0yyuanydTAc
31+
qrE3GxF/GzAMBgNVHRMEBTADAQH/MAoGCCqGSM49BAMCA0gAMEUCIA0VRYFLNitp
32+
0lffEXkPOwJ3RCJkxw4+TNiAZNhrs8QeAiEAh8124FgTDHwGCrQRFfYHVkCCayMK
33+
7C3/hnmN19Uan88=
34+
-----END CERTIFICATE-----`
35+
3436
NocRootCert3 = `
3537
-----BEGIN CERTIFICATE-----
3638
MIICAjCCAaegAwIBAgIUBrx8BUhP5Vi8W79pFDlqwkIw18MwCgYIKoZIzj0EAwIw
@@ -47,18 +49,58 @@ F5UqAiEAshHfXxUpdfxqiLoTjQjkNf0AHVYBFhLdB+iIFspwTyg=
4749
-----END CERTIFICATE-----
4850
`
4951

50-
NocRootCert1Subject = "MFUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQxDjAMBgNVBAMMBU5PQy0x"
52+
NocCert1 = `-----BEGIN CERTIFICATE-----
53+
MIICOTCCAd+gAwIBAgIBAzAKBggqhkjOPQQDAjCBgjELMAkGA1UEBhMCVVMxETAP
54+
BgNVBAgMCE5ldyBZb3JrMREwDwYDVQQHDAhOZXcgWW9yazEYMBYGA1UECgwPRXhh
55+
bXBsZSBDb21wYW55MRkwFwYDVQQLDBBUZXN0aW5nIERpdmlzaW9uMRgwFgYDVQQD
56+
DA93d3cuZXhhbXBsZS5jb20wIBcNMjQwMzAxMDY0NDE4WhgPMzAyMzA3MDMwNjQ0
57+
MThaMIGCMQswCQYDVQQGEwJVUzERMA8GA1UECAwITmV3IFlvcmsxETAPBgNVBAcM
58+
CE5ldyBZb3JrMRgwFgYDVQQKDA9FeGFtcGxlIENvbXBhbnkxGTAXBgNVBAsMEFRl
59+
c3RpbmcgRGl2aXNpb24xGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbTBZMBMGByqG
60+
SM49AgEGCCqG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AgNHADBEAiA/fduC6XJ8RGH2FCk0V7YDjAQCC3Vg
79+
Cxv0F/nTvM9ZlAIgW5x5vOhKRXEb1ak8j7SsX8ZO9aBYyLqs91dmOnHM2XM=
80+
-----END CERTIFICATE-----`
81+
82+
NocRootCert1Subject = "MIGCMQswCQYDVQQGEwJVUzERMA8GA1UECAwITmV3IFlvcmsxETAPBgNVBAcMCE5ldyBZb3JrMRgwFgYDVQQKDA9FeGFtcGxlIENvbXBhbnkxGTAXBgNVBAsMEFRlc3RpbmcgRGl2aXNpb24xGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQ=="
5183
NocRootCert1SubjectKeyID = "44:EB:4C:62:6B:25:48:CD:A2:B3:1C:87:41:5A:08:E7:2B:B9:83:26"
52-
NocRootCert1SerialNumber = "217369606639495620450806539821422258966012867792"
53-
NocRootCert1SubjectAsText = "CN=NOC-1,O=Internet Widgits Pty Ltd,ST=Some-State,C=AU"
84+
NocRootCert1SerialNumber = "1"
85+
NocRootCert1SubjectAsText = "CN=www.example.com,OU=Testing Division,O=Example Company,L=New York,ST=New York,C=US"
5486

55-
NocRootCert2Subject = "MFUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQxDjAMBgNVBAMMBU5PQy0y"
87+
NocRootCert2Subject = "MIGCMQswCQYDVQQGEwJVUzERMA8GA1UECAwITmV3IFlvcmsxETAPBgNVBAcMCE5ldyBZb3JrMRgwFgYDVQQKDA9FeGFtcGxlIENvbXBhbnkxGTAXBgNVBAsMEFRlc3RpbmcgRGl2aXNpb24xGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQ=="
5688
NocRootCert2SubjectKeyID = "CF:E6:DD:37:2B:4C:B2:B9:A9:F2:75:30:1C:AA:B1:37:1B:11:7F:1B"
57-
NocRootCert2SerialNumber = "720401643293243343104681760462974770802745092176"
58-
NocRootCert2SubjectAsText = "CN=NOC-2,O=Internet Widgits Pty Ltd,ST=Some-State,C=AU"
89+
NocRootCert2SerialNumber = "2"
90+
NocRootCert2SubjectAsText = "CN=www.example.com,OU=Testing Division,O=Example Company,L=New York,ST=New York,C=US"
5991

6092
NocRootCert3Subject = "MFUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQxDjAMBgNVBAMMBU5PQy0z"
6193
NocRootCert3SubjectKeyID = "88:0D:06:D9:64:22:29:34:78:7F:8C:3B:AE:F5:08:93:86:8F:0D:20"
6294
NocRootCert3SerialNumber = "38457288443253426021793906708335409501754677187"
6395
NocRootCert3SubjectAsText = "CN=NOC-3,O=Internet Widgits Pty Ltd,ST=Some-State,C=AU"
96+
97+
NocCert1Subject = "MIGCMQswCQYDVQQGEwJVUzERMA8GA1UECAwITmV3IFlvcmsxETAPBgNVBAcMCE5ldyBZb3JrMRgwFgYDVQQKDA9FeGFtcGxlIENvbXBhbnkxGTAXBgNVBAsMEFRlc3RpbmcgRGl2aXNpb24xGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQ=="
98+
NocCert1SubjectKeyID = "02:72:6E:BC:BB:EF:D6:BD:8D:9B:42:AE:D4:3C:C0:55:5F:66:3A:B3"
99+
NocCert1SerialNumber = "3"
100+
NocCert1SubjectAsText = "CN=www.example.com,OU=Testing Division,O=Example Company,L=New York,ST=New York,C=US"
101+
102+
NocCert2Subject = "MIGCMQswCQYDVQQGEwJVUzERMA8GA1UECAwITmV3IFlvcmsxETAPBgNVBAcMCE5ldyBZb3JrMRgwFgYDVQQKDA9FeGFtcGxlIENvbXBhbnkxGTAXBgNVBAsMEFRlc3RpbmcgRGl2aXNpb24xGDAWBgNVBAMMD3d3dy5leGFtcGxlLmNvbQ=="
103+
NocCert2SubjectKeyID = "87:48:A2:33:12:1F:51:5C:93:E6:90:40:4A:2C:AB:9E:D6:19:E5:AD"
104+
NocCert2SerialNumber = "4"
105+
NocCert2SubjectAsText = "CN=www.example.com,OU=Testing Division,O=Example Company,L=New York,ST=New York,C=US"
64106
)

0 commit comments

Comments
 (0)