Skip to content

Commit

Permalink
Merge pull request #9 from s1r-J/develop
Browse files Browse the repository at this point in the history
Bump for v0.3.0
  • Loading branch information
s1r-J authored Oct 20, 2022
2 parents 9c92ff0 + 571ecda commit cd363bc
Show file tree
Hide file tree
Showing 68 changed files with 8,750 additions and 536 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: GitHub Pages

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14

- name: Install
run: npm install

- name: Build
run: npm run doc

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
25 changes: 25 additions & 0 deletions __test__/__resources__/ca-basicCAfalse.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
-----BEGIN CERTIFICATE-----
MIIEKjCCAxKgAwIBAgIUa/Fw7fJYx8IVVU8WEpjNI+Z+Tf0wDQYJKoZIhvcNAQEL
BQAweDELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEiMCAGA1UECwwZQXV0aGVudGljYXRv
ciBBdHRlc3RhdGlvbjENMAsGA1UEAwwEdGVzdDAeFw0yMjEwMTExNDAxNDhaFw0z
MjEwMDgxNDAxNDhaMHgxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRl
MSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQxIjAgBgNVBAsMGUF1
dGhlbnRpY2F0b3IgQXR0ZXN0YXRpb24xDTALBgNVBAMMBHRlc3QwggEiMA0GCSqG
SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCgw9UBJc6hu14W5xb2+VdZy7nDAQh1ZfKK
rWiuxPFeHO6z3Qc1Kic+SaWz0BP9fajMLv5LfqZt01FLOTXbcMOq6bklBuQm2onb
Bhp7PnR8oa2CamyfreOvqnV1d0AEG2XVP7CfrthdkzTzUllElzv7cDzPCclBT5zy
ivuxLQBpeMr6buAuHOtpcH+zGF4HekJJ7cRX2SIAma3zjH2X98F82xYnxp3UG/yl
v9U8r6/rxsGstZRuOj3m7BteoEk+pE7E674l5yvSythk0GeqSfWP5GzUXf9bYUbD
BGQ/dfTDwhrkBD0r35SCsaOcOWq4QuetNzCRSg+mpTtnagw8+BJ5AgMBAAGjgasw
gagwDAYDVR0TAQH/BAIwADALBgNVHQ8EBAMCAQYwHQYDVR0lBBYwFAYIKwYBBQUH
AwEGCCsGAQUFBwMCMB0GA1UdDgQWBBRqCnbl6TuMlaMZcENqMceUSS8ehzAfBgNV
HSMEGDAWgBRqCnbl6TuMlaMZcENqMceUSS8ehzAsBgNVHR8EJTAjMCGgH6Adhhto
dHRwOi8vbG9jYWxob3N0L3Jldm9rZS5jcmwwDQYJKoZIhvcNAQELBQADggEBAEy2
YPkSayYP2frrtM5EhLFWpesWayeFSlpRhrXY1HseQFM/RX8DmofTf/3erxFYk1K0
ZCPAjWTzGld3+t31aPBh0W4JVnSIVO7YL9HR5n35t7QXY2j2O/3JpdIj0zGGmTRy
MPNgWObObzTw0qn2bASO2/siT8BZsm0XEg8PZVbysnpammgPWBzwNEjjxjw8cy8h
vsxokxgMQDFiyYBghKLib6v7UJOA1kuozzFrLgeMJPEfg6qCmHvAPKToWiz2L0QU
ImQi79k4Qwf7l53KPVUIzoR9YJ+vi1tI1G+WOw0tG339cqD2Oqki7wUjDD8jLMLM
4Qu8HeHR/6zc4HfxSWc=
-----END CERTIFICATE-----
17 changes: 17 additions & 0 deletions __test__/__resources__/ca-basicCAfalse.csr
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-----BEGIN CERTIFICATE REQUEST-----
MIICvTCCAaUCAQAweDELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUx
ITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEiMCAGA1UECwwZQXV0
aGVudGljYXRvciBBdHRlc3RhdGlvbjENMAsGA1UEAwwEdGVzdDCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBAKDD1QElzqG7XhbnFvb5V1nLucMBCHVl8oqt
aK7E8V4c7rPdBzUqJz5JpbPQE/19qMwu/kt+pm3TUUs5Ndtww6rpuSUG5CbaidsG
Gns+dHyhrYJqbJ+t46+qdXV3QAQbZdU/sJ+u2F2TNPNSWUSXO/twPM8JyUFPnPKK
+7EtAGl4yvpu4C4c62lwf7MYXgd6QkntxFfZIgCZrfOMfZf3wXzbFifGndQb/KW/
1Tyvr+vGway1lG46PebsG16gST6kTsTrviXnK9LK2GTQZ6pJ9Y/kbNRd/1thRsME
ZD919MPCGuQEPSvflIKxo5w5arhC5603MJFKD6alO2dqDDz4EnkCAwEAAaAAMA0G
CSqGSIb3DQEBCwUAA4IBAQCKhlbpg/wQTfMN3zY1/7cY4sPkV3KmOwUWGeiebXXI
lDzufG29Xp1O09vPnx7yh8JQ4yKh061Zhy09qFSEa/fGtO89+X7DrRxMIfQbGtpj
X5Fv8kq0xgi+XxsRuNCKXaDDkq0XfCh0uL9el9KOMhC2SNweXvspj0VI1sFA2pGf
T8UU5XcbPMYCumSR3g0UbxR39Rw8f7poaV2t48fSCgDHeoA4Nzoh8m2OYm7WTMGS
+3ktk/qwZR4sGlFUwQhfEFf8bsLRey4JJWFDtg96MoNY/8bVAgpVWUxPfDgNSYQ8
coRTf8qsLNxS/Baei6OCz7s/9IIubsVOTQMCIM7MVo/j
-----END CERTIFICATE REQUEST-----
8 changes: 8 additions & 0 deletions __test__/__resources__/ca-basicCAfalse.ext
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# CA証明書用
[ v3_ca ]
basicConstraints = critical, CA:false
keyUsage = keyCertSign, cRLSign
extendedKeyUsage = serverAuth, clientAuth
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid,issuer
crlDistributionPoints = URI:http://localhost/revoke.crl
24 changes: 24 additions & 0 deletions __test__/__resources__/ca.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-----BEGIN CERTIFICATE-----
MIID8zCCAtugAwIBAgIUKXOc6/2ZqUdzNObhuY33Rqn5DSIwDQYJKoZIhvcNAQEL
BQAwWzELMAkGA1UEBhMCSlAxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEUMBIGA1UEAwwLZXhhbXBsZS5jb20w
HhcNMjIwOTA0MTExMjI1WhcNMzIwOTAxMTExMjI1WjBbMQswCQYDVQQGEwJKUDET
MBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0cyBQ
dHkgTHRkMRQwEgYDVQQDDAtleGFtcGxlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQAD
ggEPADCCAQoCggEBAKDD1QElzqG7XhbnFvb5V1nLucMBCHVl8oqtaK7E8V4c7rPd
BzUqJz5JpbPQE/19qMwu/kt+pm3TUUs5Ndtww6rpuSUG5CbaidsGGns+dHyhrYJq
bJ+t46+qdXV3QAQbZdU/sJ+u2F2TNPNSWUSXO/twPM8JyUFPnPKK+7EtAGl4yvpu
4C4c62lwf7MYXgd6QkntxFfZIgCZrfOMfZf3wXzbFifGndQb/KW/1Tyvr+vGway1
lG46PebsG16gST6kTsTrviXnK9LK2GTQZ6pJ9Y/kbNRd/1thRsMEZD919MPCGuQE
PSvflIKxo5w5arhC5603MJFKD6alO2dqDDz4EnkCAwEAAaOBrjCBqzAPBgNVHRMB
Af8EBTADAQH/MAsGA1UdDwQEAwIBBjAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYB
BQUHAwIwHQYDVR0OBBYEFGoKduXpO4yVoxlwQ2oxx5RJLx6HMB8GA1UdIwQYMBaA
FGoKduXpO4yVoxlwQ2oxx5RJLx6HMCwGA1UdHwQlMCMwIaAfoB2GG2h0dHA6Ly9s
b2NhbGhvc3QvcmV2b2tlLmNybDANBgkqhkiG9w0BAQsFAAOCAQEAA2XHxe+bz/Mg
ZXh/ObbCVnhgCxlgJfTIlL8+JgWd/MOg/rRpUtM8IU8Ycws8nkeDcH64kWHSjlMe
YZDsgQ7TPlt1/WkKaCUW0GtuuS91pCCRQcaCS4CQbvRxEwmP57hWge3e/3dcDWPo
1RPhnK9zKL/KSb3Y/XCWhZdPCFCcsVg+r8s+SSZ4lWxktcdGCwyiYNTHXjVj9njV
5/CFQ2GMysF5fACyV5piFD1X/oo2TfkiJNcQjUwEYWhaAt6+7V90+D1zv6XcsqxR
XW5w36lcnko2QyOxTLRqa0LVYeEgjtd6QmfOW+LpjUnD9nOvi5WWjdYF/SrKdsbl
HRrVrd40bA==
-----END CERTIFICATE-----
17 changes: 17 additions & 0 deletions __test__/__resources__/ca.csr
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-----BEGIN CERTIFICATE REQUEST-----
MIICoDCCAYgCAQAwWzELMAkGA1UEBhMCSlAxEzARBgNVBAgMClNvbWUtU3RhdGUx
ITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEUMBIGA1UEAwwLZXhh
bXBsZS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCgw9UBJc6h
u14W5xb2+VdZy7nDAQh1ZfKKrWiuxPFeHO6z3Qc1Kic+SaWz0BP9fajMLv5LfqZt
01FLOTXbcMOq6bklBuQm2onbBhp7PnR8oa2CamyfreOvqnV1d0AEG2XVP7Cfrthd
kzTzUllElzv7cDzPCclBT5zyivuxLQBpeMr6buAuHOtpcH+zGF4HekJJ7cRX2SIA
ma3zjH2X98F82xYnxp3UG/ylv9U8r6/rxsGstZRuOj3m7BteoEk+pE7E674l5yvS
ythk0GeqSfWP5GzUXf9bYUbDBGQ/dfTDwhrkBD0r35SCsaOcOWq4QuetNzCRSg+m
pTtnagw8+BJ5AgMBAAGgADANBgkqhkiG9w0BAQsFAAOCAQEAAJ5DgVKA11XftZqI
07Wr2WueF8gKGBZ1WQrv7jipV0vlZZ6boRv1bBYvmhiSOOJa6VVGvfEGJmkiOYgb
Zv36joptvm8lOKjT5M5qC3/lV6nJxbvEtzekMW+WVXpux/tsr9HI/dCyJUua6/BQ
iu6hlj1+dnn1Jh21qZImVOw7nSoEBD1VRpIvehBZSfjiO5BUJLEuAHtLvgdwg6v4
Y+DXXFmY6Rst0WTah0gSIXhwCLJ6bRxe95tlrdGhFMoP6ZZzsMoVfG54fpBUYkJN
9k8adaMiJ5etaw60tprTLzg3rAZUCqd46AwDIBJ1pBfv4rNvFCgVL13XSs7hvUy7
ADrHcg==
-----END CERTIFICATE REQUEST-----
8 changes: 8 additions & 0 deletions __test__/__resources__/ca.ext
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# CA certificate
[ v3_ca ]
basicConstraints = critical, CA:true
keyUsage = keyCertSign, cRLSign
extendedKeyUsage = serverAuth, clientAuth
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid,issuer
crlDistributionPoints = URI:http://localhost/revoke.crl
27 changes: 27 additions & 0 deletions __test__/__resources__/ca.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAoMPVASXOobteFucW9vlXWcu5wwEIdWXyiq1orsTxXhzus90H
NSonPkmls9AT/X2ozC7+S36mbdNRSzk123DDqum5JQbkJtqJ2wYaez50fKGtgmps
n63jr6p1dXdABBtl1T+wn67YXZM081JZRJc7+3A8zwnJQU+c8or7sS0AaXjK+m7g
LhzraXB/sxheB3pCSe3EV9kiAJmt84x9l/fBfNsWJ8ad1Bv8pb/VPK+v68bBrLWU
bjo95uwbXqBJPqROxOu+Jecr0srYZNBnqkn1j+Rs1F3/W2FGwwRkP3X0w8Ia5AQ9
K9+UgrGjnDlquELnrTcwkUoPpqU7Z2oMP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BAL/jWKkPmYJ8H5djOJa0KtUjyB54ktEDeOEIbObYG5h3NK6OcEOZe/fu
G6dBSFQsjFnFPq3wFfU23Gipw4/H7oVwDxAAkLI8iGvBKgC2aGj/Qz392KPih/dG
4/hbjdOxbxK7N2684rmMkINXOXVS6/Ax/72iW7fWStnlR81ARpkf
-----END RSA PRIVATE KEY-----
1 change: 1 addition & 0 deletions __test__/__resources__/ca.srl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1EDABD36998207D4D7B32A4D8A887BF4B94393F8
25 changes: 25 additions & 0 deletions __test__/__resources__/ca2.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
-----BEGIN CERTIFICATE-----
MIIELTCCAxWgAwIBAgIUKlzyZ73NLsNdv8lf4B/75HgYXNcwDQYJKoZIhvcNAQEL
BQAweDELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEiMCAGA1UECwwZQXV0aGVudGljYXRv
ciBBdHRlc3RhdGlvbjENMAsGA1UEAwwEdGVzdDAeFw0yMjEwMTExMzI1MzNaFw0z
MjEwMDgxMzI1MzNaMHgxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRl
MSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQxIjAgBgNVBAsMGUF1
dGhlbnRpY2F0b3IgQXR0ZXN0YXRpb24xDTALBgNVBAMMBHRlc3QwggEiMA0GCSqG
SIb3DQEBAQUAA4IBDwAwggEKAoIBAQCgw9UBJc6hu14W5xb2+VdZy7nDAQh1ZfKK
rWiuxPFeHO6z3Qc1Kic+SaWz0BP9fajMLv5LfqZt01FLOTXbcMOq6bklBuQm2onb
Bhp7PnR8oa2CamyfreOvqnV1d0AEG2XVP7CfrthdkzTzUllElzv7cDzPCclBT5zy
ivuxLQBpeMr6buAuHOtpcH+zGF4HekJJ7cRX2SIAma3zjH2X98F82xYnxp3UG/yl
v9U8r6/rxsGstZRuOj3m7BteoEk+pE7E674l5yvSythk0GeqSfWP5GzUXf9bYUbD
BGQ/dfTDwhrkBD0r35SCsaOcOWq4QuetNzCRSg+mpTtnagw8+BJ5AgMBAAGjga4w
gaswDwYDVR0TAQH/BAUwAwEB/zALBgNVHQ8EBAMCAQYwHQYDVR0lBBYwFAYIKwYB
BQUHAwEGCCsGAQUFBwMCMB0GA1UdDgQWBBRqCnbl6TuMlaMZcENqMceUSS8ehzAf
BgNVHSMEGDAWgBRqCnbl6TuMlaMZcENqMceUSS8ehzAsBgNVHR8EJTAjMCGgH6Ad
hhtodHRwOi8vbG9jYWxob3N0L3Jldm9rZS5jcmwwDQYJKoZIhvcNAQELBQADggEB
AGisZe7VSGQs+K9Vzo5sOH8X8yWpzNA87RwZQAVASGQGdhnr0VKlEch+qQDc3OFl
JcyanmP1ifD1hkjxj6Lt+86r2YTe/21cqiW8LxAj3HtcK5wTlpsi94ko9BvizJpA
/cRt46LT8PCd4cRYtFwmNJWNDFc7pGygSibCjOBTSWvC107ESALkZKeHwHyMxkRD
n/HMtBlXRZ1IYytz3a2yjs2ua+ov20reppwaimT7wDXvdMDtFTIJB/Qy0AkcoOTH
LGHTeGK6khIMRtCUvQQqH4DGLVU6KaGgQsqbJkU52uuV/CrthFn76IkWbRkZTaHi
aAvTGLw4Ex0oP1fp+AeNWCI=
-----END CERTIFICATE-----
17 changes: 17 additions & 0 deletions __test__/__resources__/ca2.csr
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-----BEGIN CERTIFICATE REQUEST-----
MIICvTCCAaUCAQAweDELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUx
ITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEiMCAGA1UECwwZQXV0
aGVudGljYXRvciBBdHRlc3RhdGlvbjENMAsGA1UEAwwEdGVzdDCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBAKDD1QElzqG7XhbnFvb5V1nLucMBCHVl8oqt
aK7E8V4c7rPdBzUqJz5JpbPQE/19qMwu/kt+pm3TUUs5Ndtww6rpuSUG5CbaidsG
Gns+dHyhrYJqbJ+t46+qdXV3QAQbZdU/sJ+u2F2TNPNSWUSXO/twPM8JyUFPnPKK
+7EtAGl4yvpu4C4c62lwf7MYXgd6QkntxFfZIgCZrfOMfZf3wXzbFifGndQb/KW/
1Tyvr+vGway1lG46PebsG16gST6kTsTrviXnK9LK2GTQZ6pJ9Y/kbNRd/1thRsME
ZD919MPCGuQEPSvflIKxo5w5arhC5603MJFKD6alO2dqDDz4EnkCAwEAAaAAMA0G
CSqGSIb3DQEBCwUAA4IBAQCKhlbpg/wQTfMN3zY1/7cY4sPkV3KmOwUWGeiebXXI
lDzufG29Xp1O09vPnx7yh8JQ4yKh061Zhy09qFSEa/fGtO89+X7DrRxMIfQbGtpj
X5Fv8kq0xgi+XxsRuNCKXaDDkq0XfCh0uL9el9KOMhC2SNweXvspj0VI1sFA2pGf
T8UU5XcbPMYCumSR3g0UbxR39Rw8f7poaV2t48fSCgDHeoA4Nzoh8m2OYm7WTMGS
+3ktk/qwZR4sGlFUwQhfEFf8bsLRey4JJWFDtg96MoNY/8bVAgpVWUxPfDgNSYQ8
coRTf8qsLNxS/Baei6OCz7s/9IIubsVOTQMCIM7MVo/j
-----END CERTIFICATE REQUEST-----
23 changes: 23 additions & 0 deletions __test__/__resources__/chain-basicCAtrue.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
-----BEGIN CERTIFICATE-----
MIID4DCCAsigAwIBAgIUHtq9NpmCB9TXsypNioh79LlDk/gwDQYJKoZIhvcNAQEL
BQAwWzELMAkGA1UEBhMCSlAxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEUMBIGA1UEAwwLZXhhbXBsZS5jb20w
HhcNMjIxMDExMTM1ODQ5WhcNMzI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0aJd2hs4RDwfW/a8
OjAbsSjfCil5FY+DbY1YzVcEG6TirBQwwSYBd3QR+cgAL4Ra
-----END CERTIFICATE-----
17 changes: 17 additions & 0 deletions __test__/__resources__/chain-basicCAtrue.csr
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-----BEGIN CERTIFICATE REQUEST-----
MIICvTCCAaUCAQAweDELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUx
ITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEiMCAGA1UECwwZQXV0
aGVudGljYXRvciBBdHRlc3RhdGlvbjENMAsGA1UEAwwEdGVzdDCCASIwDQYJKoZI
hvcNAQEBBQADggEPADCCAQoCggEBAMJIdUKos3K3o+hFSbzVDkLRd2rfuwCE5dqJ
wOgvUC2+Niffspog5GU/t96uFGxvfSQKCDOEndqN4YYM6mQIgFVPn393QanRrreC
4cyCL0ZRKXir4I4QBB28iNuemzdhOWk7aNjEFWywehdCRkkfikmai4jaXtx0EqeM
YSQovWIGHCC21M1XFVnkqh/BbbTHUV4qbephV5j/5JdRSn971DS7Eu6DBE7IR09e
KJz5rmsV4dfQTmB9E3dbHAaJ+6sJyBaLJq+Shu8M5zX3xROw7bkKCmR2KV8RVy1y
2e2QGFc0/OUzDYNu5YV6e1w+9QsotER9R9H/hXOpEJfu+yXQs+8CAwEAAaAAMA0G
CSqGSIb3DQEBCwUAA4IBAQCUPkRZuPzRreKOvGXJsl9GGzbQAN0LGCg2/vssZUvr
JfuCTCu9PS9IDrvzioC+MQ2VgRw7nP0tUNLEnvjrOZLJHd4vp0YIiGgHU75pKtbG
ijQwuXQFxEZ9pVd3VBkRM7pdwqfOJqObLIyy2HRJg4fw3RnZNRvqKfdt1b3xfH+3
voNyIV6vkpvgGbrjGn2BCZRn3JZAW97P8E/4Qm5uAHYeuVYZ0g+LNBFTn5XY8yyM
wSMlPpZAp452nY6KOCf9vYUV0/d/9EhKiEp2QEfZ+qruSvXRjNdjRuSIcxMLL/xj
mtIWVcFjhZWBEclFrE9g8+u06g2oS4TYi530H7ZLi8I+
-----END CERTIFICATE REQUEST-----
8 changes: 8 additions & 0 deletions __test__/__resources__/chain-basicCAtrue.ext
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# chain certificate, basic constraints true
[ v3_server ]
basicConstraints = critical, CA:true
keyUsage = digitalSignature, keyEncipherment
extendedKeyUsage = serverAuth, clientAuth
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid,issuer

23 changes: 23 additions & 0 deletions __test__/__resources__/chain-noC.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
-----BEGIN CERTIFICATE-----
MIID0DCCArigAwIBAgIUHtq9NpmCB9TXsypNioh79LlDk/QwDQYJKoZIhvcNAQEL
BQAwWzELMAkGA1UEBhMCSlAxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEUMBIGA1UEAwwLZXhhbXBsZS5jb20w
HhcNMjIxMDExMTMxNDA2WhcNMzIxMDA4MTMxNDA2WjBrMRMwEQYDVQQIDApTb21l
LVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQxIjAgBgNV
BAsMGUF1dGhlbnRpY2F0b3IgQXR0ZXN0YXRpb24xDTALBgNVBAMMBHRlc3QwggEi
MA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDCSHVCqLNyt6PoRUm81Q5C0Xdq
37sAhOXaicDoL1AtvjYn37KaIORlP7ferhRsb30kCggzhJ3ajeGGDOpkCIBVT59/
d0Gp0a63guHMgi9GUSl4q+COEAQdvIjbnps3YTlpO2jYxBVssHoXQkZJH4pJmouI
2l7cdBKnjGEkKL1iBhwgttTNVxVZ5KofwW20x1FeKm3qYVeY/+SXUUp/e9Q0uxLu
gwROyEdPXiic+a5rFeHX0E5gfRN3WxwGifurCcgWiyavkobvDOc198UTsO25Cgpk
dilfEVctctntkBhXNPzlMw2DbuWFentcPvULKLREfUfR/4VzqRCX7vsl0LPvAgMB
AAGjfDB6MAwGA1UdEwEB/wQCMAAwCwYDVR0PBAQDAgWgMB0GA1UdJQQWMBQGCCsG
AQUFBwMBBggrBgEFBQcDAjAdBgNVHQ4EFgQU5iSYpsds2OdCxswPYi5d9QizoTgw
HwYDVR0jBBgwFoAUagp25ek7jJWjGXBDajHHlEkvHocwDQYJKoZIhvcNAQELBQAD
ggEBAETDCzLT2JTzEpfDjxoi5ya2udqgjUN+/z9gh4fyhfrIfvdPyMM7iq24Yqeo
qkja4SreAmRTbhIcx5+Jw0/JUzSYqmnnr4tC3hH/3hhdLDsvEXeBU9qL3Qj8p5z3
AC23hxkfkl6/UEbWkBXwOEUlH0Ls5Fx40E/OJSEfRKrEyD/iy2Kt4xcrEXgH3rB1
BFC2LKhK+08SNVbn6/svI/G37wlkwSrtUSuBu9clCvltRTAaZ2hQ68TC3MMIG2Li
A4CwM3wk83C0UdNKwhZBE0y9nFpCVD4Mmi1K7czraacYmNQ9u3AgMPoTKTOArekH
OSi/zS2ZeO2/65Rq3K/UXWNsmKs=
-----END CERTIFICATE-----
17 changes: 17 additions & 0 deletions __test__/__resources__/chain-noC.csr
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-----BEGIN CERTIFICATE REQUEST-----
MIICsDCCAZgCAQAwazETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50
ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMSIwIAYDVQQLDBlBdXRoZW50aWNhdG9yIEF0
dGVzdGF0aW9uMQ0wCwYDVQQDDAR0ZXN0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
MIIBCgKCAQEAwkh1Qqizcrej6EVJvNUOQtF3at+7AITl2onA6C9QLb42J9+ymiDk
ZT+33q4UbG99JAoIM4Sd2o3hhgzqZAiAVU+ff3dBqdGut4LhzIIvRlEpeKvgjhAE
HbyI256bN2E5aTto2MQVbLB6F0JGSR+KSZqLiNpe3HQSp4xhJCi9YgYcILbUzVcV
WeSqH8FttMdRXipt6mFXmP/kl1FKf3vUNLsS7oMETshHT14onPmuaxXh19BOYH0T
d1scBon7qwnIFosmr5KG7wznNffFE7DtuQoKZHYpXxFXLXLZ7ZAYVzT85TMNg27l
hXp7XD71Cyi0RH1H0f+Fc6kQl+77JdCz7wIDAQABoAAwDQYJKoZIhvcNAQELBQAD
ggEBABTNlcVhGcN31QjHBIohVpzxmm1HPstSk4visqG96SJNHZplLygwhUyqooig
8P3vzBz6JarLAH+H6LTcBsH/ZuXbU9XFHMxBV69IscMLt7MH4WiFuEXkApvPvDWj
5vMlaIYeUYDOUpx6iu97UNt2USA5etcZl5MM2PVTL/7utCuOTsXjWOiirO3qpKoB
Nfue7C0zOtplBB1N5RkTeuORegBN0+3vshY40lpRuh3E8x2mcCBRkmY4Y00QNUZ8
ZxCCnEW449YsjN8BnvtWZEXQ2MVAexxmsSN1MGZyDOAmKB8Jj0dZ4ywupldTw2rx
mAz4E7dE+XK8CVTjG0cXZ0YG8mI=
-----END CERTIFICATE REQUEST-----
23 changes: 23 additions & 0 deletions __test__/__resources__/chain-noCN.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
-----BEGIN CERTIFICATE-----
MIIDzjCCAragAwIBAgIUHtq9NpmCB9TXsypNioh79LlDk/YwDQYJKoZIhvcNAQEL
BQAwWzELMAkGA1UEBhMCSlAxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEUMBIGA1UEAwwLZXhhbXBsZS5jb20w
HhcNMjIxMDExMTMyMDQ2WhcNMzIxMDA4MTMyMDQ2WjBpMQswCQYDVQQGEwJBVTET
MBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0cyBQ
dHkgTHRkMSIwIAYDVQQLDBlBdXRoZW50aWNhdG9yIEF0dGVzdGF0aW9uMIIBIjAN
BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwkh1Qqizcrej6EVJvNUOQtF3at+7
AITl2onA6C9QLb42J9+ymiDkZT+33q4UbG99JAoIM4Sd2o3hhgzqZAiAVU+ff3dB
qdGut4LhzIIvRlEpeKvgjhAEHbyI256bN2E5aTto2MQVbLB6F0JGSR+KSZqLiNpe
3HQSp4xhJCi9YgYcILbUzVcVWeSqH8FttMdRXipt6mFXmP/kl1FKf3vUNLsS7oME
TshHT14onPmuaxXh19BOYH0Td1scBon7qwnIFosmr5KG7wznNffFE7DtuQoKZHYp
XxFXLXLZ7ZAYVzT85TMNg27lhXp7XD71Cyi0RH1H0f+Fc6kQl+77JdCz7wIDAQAB
o3wwejAMBgNVHRMBAf8EAjAAMAsGA1UdDwQEAwIFoDAdBgNVHSUEFjAUBggrBgEF
BQcDAQYIKwYBBQUHAwIwHQYDVR0OBBYEFOYkmKbHbNjnQsbMD2IuXfUIs6E4MB8G
A1UdIwQYMBaAFGoKduXpO4yVoxlwQ2oxx5RJLx6HMA0GCSqGSIb3DQEBCwUAA4IB
AQBd24az23u8C35ZvpoEdM6PtF4+sMITZ4kTxt7OIkIYQbRsSQ5SJju96XMoS34d
7suoA4cJRwHNx4XkRgeZOtLtsvBz2NC84BRKnONoN5mJNHJsLItIYpCv7U3OE85i
kcLCvHAuJ6lws4PgjVshQHzYKjPF3QIFxOebMhqKTEbQooffmqqssqSiiXFa7Vgi
XgeuklVNIjWFa0jVL1k8qxtpFWWym5WICJAcIIgpV/7Qx5MnpFd0P+AoP1eWnf3W
C3hcKF8a00VMZem/Fl9Bl75M2h5FSyOpL3caMrWbrO5F+Z2uvfKKUgQWnuxoH6s6
58VNm6g6APr3NpC/LKj+YWgK
-----END CERTIFICATE-----
17 changes: 17 additions & 0 deletions __test__/__resources__/chain-noCN.csr
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
-----BEGIN CERTIFICATE REQUEST-----
MIICrjCCAZYCAQAwaTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUx
ITAfBgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDEiMCAGA1UECwwZQXV0
aGVudGljYXRvciBBdHRlc3RhdGlvbjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
AQoCggEBAMJIdUKos3K3o+hFSbzVDkLRd2rfuwCE5dqJwOgvUC2+Niffspog5GU/
t96uFGxvfSQKCDOEndqN4YYM6mQIgFVPn393QanRrreC4cyCL0ZRKXir4I4QBB28
iNuemzdhOWk7aNjEFWywehdCRkkfikmai4jaXtx0EqeMYSQovWIGHCC21M1XFVnk
qh/BbbTHUV4qbephV5j/5JdRSn971DS7Eu6DBE7IR09eKJz5rmsV4dfQTmB9E3db
HAaJ+6sJyBaLJq+Shu8M5zX3xROw7bkKCmR2KV8RVy1y2e2QGFc0/OUzDYNu5YV6
e1w+9QsotER9R9H/hXOpEJfu+yXQs+8CAwEAAaAAMA0GCSqGSIb3DQEBCwUAA4IB
AQCfoUBUizkApibqG33h6ljgQh52MtcGVfG6HcRtI3M5jdfDK+vbGABqioRF8Q1r
Ah1bxP6c5GTEpabUGlNQOi8z+A93R9sjuRZZ216FbC3YOUCAYCzKSAp5MuNAIwZY
J5w0r3FdHZlwWk4SbqN5MZdmqyem/d2hKyDZjaeRGK0Tzj5zYL1pxrYg/HZcWeXY
ej5xYr6nSAzQHJILhTvj9aUNtaDin4O6VvJCttebfnU7qvdoMUmvKVzueNsomg0x
04aytqpqqjpJ08XhP+U5MIFAurcGWOKMk8ME1y1X/6uAcA7L0pnGdlzcDa9vja9K
h87zfsx+IOILsA4snVkl4FUF
-----END CERTIFICATE REQUEST-----
22 changes: 22 additions & 0 deletions __test__/__resources__/chain-noO.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
-----BEGIN CERTIFICATE-----
MIIDujCCAqKgAwIBAgIUHtq9NpmCB9TXsypNioh79LlDk/cwDQYJKoZIhvcN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hGSVunccKDhG/mhb59
r9SQt96ezEtyXRspm5yT3wMqwNBWkIOoo3Ak8aoeFgNJ8Dvk6YO8BlBn7KITn47/
F5KhE0M0atwdHWrcrXwAM7mTqjyzR2J2RMbzkoT1yydENsNevVkqD2L8dRGMWQ==
-----END CERTIFICATE-----
Loading

0 comments on commit cd363bc

Please sign in to comment.