Skip to content

Commit

Permalink
fix: re-generate x509 test certs [issue 115]
Browse files Browse the repository at this point in the history
  • Loading branch information
shaj13 committed Feb 28, 2022
1 parent 6801726 commit 9d1ed1c
Show file tree
Hide file tree
Showing 11 changed files with 191 additions and 201 deletions.
101 changes: 50 additions & 51 deletions auth/strategies/x509/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,82 +14,81 @@ import (
const (
valid = `
-----BEGIN CERTIFICATE-----
MIIEBDCCAuygAwIBAgIUDJgNc70lDeFv6f7B2Mwy9WEcK9QwDQYJKoZIhvcNAQEL
MIIEBDCCAuygAwIBAgIUVKhnHkYcQpTnR4OAdSe1uSzcwaEwDQYJKoZIhvcNAQEL
BQAwbTELMAkGA1UEBhMCR0IxEDAOBgNVBAgTB0VuZ2xhbmQxDzANBgNVBAcTBkxv
bmRvbjENMAsGA1UEChMEVEVTVDEVMBMGA1UECxMMVEVTVCBSb290IENBMRUwEwYD
VQQDEwxURVNUIFJvb3QgQ0EwHhcNMjAwNTEzMTI0MjAwWhcNMjEwNTEzMTI0MjAw
VQQDEwxURVNUIFJvb3QgQ0EwHhcNMjIwMjI4MDkyNzAwWhcNMjMwMjI4MDkyNzAw
WjBsMQswCQYDVQQGEwJHQjEQMA4GA1UECBMHRW5nbGFuZDEPMA0GA1UEBxMGTG9u
ZG9uMQ0wCwYDVQQKEwRUZXN0MRMwEQYDVQQLEwpUZXN0IEhvc3RzMRYwFAYDVQQD
Ew1ob3N0LnRlc3QuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
oDiZOcVxTxOFZIwIAAjHsyXqTz3Hht5iySMyDbApw6C6aHHWVBur1uUnhTh8ek7f
8DbLZ3FiNqMhzrHhs4xT46xE23FNphZoahLaMINXOQ2jkdPU/RkEmcAMdfYfFKZd
85BXVgMjjoNOVsu/HpecO0X4ONLs1pCVpz3U1gBtAjSB9s7DOo2brsGCYbVxM+O9
a8nf1ayWcDJ5iwF5CYgQiPEsSs/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ZKoP4wt0FB1
jLdiNKZM6byw3dHlNDZWxC78ztzNVcei4tl1iaK86PEQw5sK/tmzn5fMoxDGUlrY
CfbpqGLiZ3CVvgBlKXhxGJnln//ummxEo+mGEoAV99Te0eN2TytAcgfJEGYxEqlR
r7uiIYhWM3RzrY4wBqukqnaY
-----END CERTIFICATE-----
AKDuK1yk668L20Depz7vV7pgGR09AqYVBTWElNDxRKPXdILf7//zq37dzeIxktNy
MvaCukQ7l+nvNsexQWqWf6rIRbexQwUwUDpFCmuXAbBL9/9Wvz4xeIJPkhF1Eigd
dhQ5M9/omHnP9LVR3/ei/DZoFs3tPegvdI9bxOKonnUJfFfloF/HGsbO1M5LEZL5
vIbRLdnkmaxB6DqfeH9/La/gHxFRFQGxozBl+/1H71DL81tk93ERQ8v4Sbhw/brW
lG1Dsdf8BivM2E6Vpef0CMKM+SinxSpDUDoWX+ZcU5nFt2QRsXV2SBKGJsO2WyqS
2hg7Ig748Lp9EzEQtg0ZX40CAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1Ud
EwEB/wQFMAMBAf8wHQYDVR0OBBYEFBL4xaIMEn9FIEbk1H60y4TwgmgdMA0GCSqG
SIb3DQEBCwUAA4IBAQA1ripZ3A8plG06QU619d21LlS7IyAn13owCHyeXwynQpWB
XI68MLoxA05mizzLi/p6+LDW2t/nXjDIj+y72lt1jkNYFTC38xP7xViQPsGSEAlL
W+rxTZPy+0ol3iM5FHf+h0Ivr2xXc4FsxIaeCkbjk0vHsu3u6KCL6JXmlo5SuTgV
ypDOW9M1+Dj7EIdpNgQhbaAjQ4S/I+g2pH89fa5SlV+kO+lwq+jrNkjctpX2kOVc
T78nh0o20v9Yz5MEyNbsGhBZulANFRC0XGq/APQG3naQpMTP9LgrdnNrBtIwruFu
kGESrcNRKbsfioRyS45KHwgkLF8ycInYrHmm6cKV
-----END CERTIFICATE-----
`
)

Expand All @@ -109,11 +108,11 @@ func Example() {
// validate expired client certificate
req.TLS = &tls.ConnectionState{PeerCertificates: []*crypto_x509.Certificate{ParseCertificate(expired)}}
info, err = strategy.Authenticate(req.Context(), req)
fmt.Println(info, err)
fmt.Println(info, err != nil)

// Output:
// host.test.com <nil>
// <nil> x509: certificate has expired or is not yet valid
// <nil> true
}

func ExampleInfoBuilder() {
Expand Down
31 changes: 15 additions & 16 deletions auth/strategies/x509/testdata/ca
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
-----BEGIN CERTIFICATE-----
MIIDzjCCAragAwIBAgIUHm6+iLd5YbWvhrGctYU+kJP3FvEwDQYJKoZIhvcNAQEL
MIIDqjCCApKgAwIBAgIUQgSrqSXHbP8ljn7Bp9W6yoDF6ZcwDQYJKoZIhvcNAQEL
BQAwbTELMAkGA1UEBhMCR0IxEDAOBgNVBAgTB0VuZ2xhbmQxDzANBgNVBAcTBkxv
bmRvbjENMAsGA1UEChMEVEVTVDEVMBMGA1UECxMMVEVTVCBSb290IENBMRUwEwYD
VQQDEwxURVNUIFJvb3QgQ0EwHhcNMjAwNTEzMTI0MjAwWhcNMjUwNTEyMTI0MjAw
VQQDEwxURVNUIFJvb3QgQ0EwHhcNMjIwMjI4MDkyNzAwWhcNMjcwMjI3MDkyNzAw
WjBtMQswCQYDVQQGEwJHQjEQMA4GA1UECBMHRW5nbGFuZDEPMA0GA1UEBxMGTG9u
ZG9uMQ0wCwYDVQQKEwRURVNUMRUwEwYDVQQLEwxURVNUIFJvb3QgQ0ExFTATBgNV
BAMTDFRFU1QgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
AM230Ldx9H+3HS1LAmnKoiiqddSrJFkYQx62M/HMxsye7fw8u4PpfLfXUetbaxtB
CGZTjCI49OrF2W4W5OTBaeorumcwcsYRMjs4/O92LvsOScKzneAGHbAEqpISXiZE
exZg2+jcWQdtXWxvafJ9wwvhB4jnd8SgioIlQB+oH+Z8eBDrnWXgUCqzceRMmW+/
ztjX85bfdvqhVIYUKt2+G5oyZ4LNMjZv95nZqI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9FIEbk1H60y4TwgmgdMA0GCSqG
SIb3DQEBCwUAA4IBAQA1ripZ3A8plG06QU619d21LlS7IyAn13owCHyeXwynQpWB
XI68MLoxA05mizzLi/p6+LDW2t/nXjDIj+y72lt1jkNYFTC38xP7xViQPsGSEAlL
W+rxTZPy+0ol3iM5FHf+h0Ivr2xXc4FsxIaeCkbjk0vHsu3u6KCL6JXmlo5SuTgV
ypDOW9M1+Dj7EIdpNgQhbaAjQ4S/I+g2pH89fa5SlV+kO+lwq+jrNkjctpX2kOVc
T78nh0o20v9Yz5MEyNbsGhBZulANFRC0XGq/APQG3naQpMTP9LgrdnNrBtIwruFu
kGESrcNRKbsfioRyS45KHwgkLF8ycInYrHmm6cKV
-----END CERTIFICATE-----
33 changes: 16 additions & 17 deletions auth/strategies/x509/testdata/client
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
-----BEGIN CERTIFICATE-----
MIIDzDCCArSgAwIBAgIUeQcrEo//jQmxUwVEjNoxN1CA1gYwDQYJKoZIhvcNAQEL
MIIDqDCCApCgAwIBAgIUMwm8MSasF/g+w8b0u7m2F3TKYewwDQYJKoZIhvcNAQEL
BQAwbDELMAkGA1UEBhMCR0IxEDAOBgNVBAgTB0VuZ2xhbmQxDzANBgNVBAcTBkxv
bmRvbjENMAsGA1UEChMEVGVzdDETMBEGA1UECxMKVGVzdCBIb3N0czEWMBQGA1UE
AxMNaG9zdC50ZXN0LmNvbTAeFw0yMDA1MTMxMjQyMDBaFw0yNTA1MTIxMjQyMDBa
AxMNaG9zdC50ZXN0LmNvbTAeFw0yMjAyMjgwOTI3MDBaFw0yNzAyMjcwOTI3MDBa
MGwxCzAJBgNVBAYTAkdCMRAwDgYDVQQIEwdFbmdsYW5kMQ8wDQYDVQQHEwZMb25k
b24xDTALBgNVBAoTBFRlc3QxEzARBgNVBAsTClRlc3QgSG9zdHMxFjAUBgNVBAMT
DWhvc3QudGVzdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKA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gGDrymIochWMPqIfbnvb5CMTAXlIHQ3eYqZp3afwXkEekDGggAQ2Wm3aW
etDVTAmeaQFsDUdhUCi831nCK7tj1wNYGu0MsuGBwUEIlJMrzWtt/jT4pGtDhwt0
jaTsnUA9FjXXUx2OwL/U2oE6pO1iziC9qeMVbNFoOfrdk2AK/6pi7JvSjTZzXRxI
1svnoMsbWeVCqwNlDkCnAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMB
Af8EBTADAQH/MB0GA1UdDgQWBBRiUsvADnefEURF7H9mEpqp0CqITTANBgkqhkiG
9w0BAQsFAAOCAQEAqgys0g7+Nsj8bQ0h00IS8HzSwoi+rF9U57dwtsry5z8ZI0/M
L+jY7FOqaKQXDqd3tlMMj3Q8rX9rMVNPkAGglshowuvK24HvUExkpPaJQcsbbBe0
sXMytWbX6jJaHTOea+4EZpGaO5q6ZTx/BBPWYTZrv5lx9eCWhuBprO+hg4VoNkky
2ZN6peF4LpQMhhqBrbv2TylsmeYt9pQ3nepLja4D7+xgdq1J9TxGZ/AaehSxUoF8
Ku3q0BxfeSyQMD5+BStQ/q0C0HGyyLWz1ZFgAfXOlDgW8rFReeKdU1uhFHLph24r
PIzf9iVhAtuA6FdIaQsEY8RN4Mk8UjBs8aAMUQ==
-----END CERTIFICATE-----
30 changes: 15 additions & 15 deletions auth/strategies/x509/testdata/client_expired
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
-----BEGIN CERTIFICATE-----
MIIEBDCCAuygAwIBAgIUchCG0LQyXuDHWO0BPYBHO3xgBo0wDQYJKoZIhvcNAQEL
MIIEBDCCAuygAwIBAgIUCQhmpjO4Vmxhv7qY00uv3TrZESIwDQYJKoZIhvcNAQEL
BQAwbTELMAkGA1UEBhMCR0IxEDAOBgNVBAgTB0VuZ2xhbmQxDzANBgNVBAcTBkxv
bmRvbjENMAsGA1UEChMEVEVTVDEVMBMGA1UECxMMVEVTVCBSb290IENBMRUwEwYD
VQQDEwxURVNUIFJv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gvanjFWzRaDn63ZNgCv+qYuyb0o02c10c
SNbL56DLG1nlQqsDZQ5ApwIDAQABo4GcMIGZMA4GA1UdDwEB/wQEAwIFoDATBgNV
HSUEDDAKBggrBgEFBQcDAjAMBgNVHRMBAf8EAjAAMB0GA1UdDgQWBBRiUsvADnef
EURF7H9mEpqp0CqITTAfBgNVHSMEGDAWgBQS+MWiDBJ/RSBG5NR+tMuE8IJoHTAk
BgNVHREEHTAbgg5ob3N0MS50ZXN0LmNvbYIJbG9jYWxob3N0MA0GCSqGSIb3DQEB
CwUAA4IBAQAWI1Qm1STE8AFEVC76tMJ/a0SwLjfsn3qJwjap2O7HB8h5sPt9C3eM
rcpmGMuwUmE3FjUlUEP+QjLZTKuDgDzoOmlSASV+5cnfQe4w5rOXNYG4AFOMYxl4
+47OOYo8wYA7EeSkkJPXgtHybn/xMMMw+75vcNMYyQIKiB1lY9Y7id8wXM2VTeLC
YG5pjrQCU2QVNJGmanknsouqAZRVvTmOiEFj90rqrKtahNX6w00WsIcraXgE+c/S
A0d6vzryhM5HUiHKUSKea3kCdGcJeIvKIAJXnc5WCG8kbSXK3hAc9YfQ+iggJARi
sTEZmCbs9xPaMV2nwvv7zzLtTtVCDFiH
CwUAA4IBAQCHJyYJOqm29SptDu9V/dF1ZAjkBbXQ3obxYnxGsHnl4YU0ETdRQvdV
j73XGuTY8Na2n4EV9fHOabzlF5TJGWJJmv6hOCQjNXjEewN2OPyXxffnQxwz4Pid
w//AZyO5ylmWo3jboqjBZzL14B4MVIYa1L8APNY95MZAy6FgG/+JukyAS2GPm46H
DRktsrz/IRB/nqbnf+0PImTnixwZUzMHVDYLMtMpFifw9M7W/ZXK4Zd+TcT7Kvge
58f/qOvo5TlXgsp2xvyDajLyqNluRCz8Q/EYsTK+2D/iWvbWRXetPjuC9rBCVoLc
7ORcnSL/gPdPUO3W47fHHaBA/usXObv/
-----END CERTIFICATE-----
30 changes: 15 additions & 15 deletions auth/strategies/x509/testdata/client_future
Original file line number Diff line number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+xoOrNACsNCmCTpSZHOP7l/vTTe7bZ/b
9o4Znyzlx5XZkNj30bH+HMkI+J0RLNWHaqZPGstTaK8+tBDKYBR6HyN7EbYRqQXU
g1Lu56NpXlemVRKVG8OqUUEe6D6a0ARVj3RO4oC6Jho7teRRqvPq1bPuiSsYccw3
uuuvs+4GBxnt+xZ7c8rsvNv0irDonNH+D7NlsALIJSdKWpQ0jethxbwofpG9r4bH
amy5xguLJJlTPwkUvZ5TXFnJ8ZgJd067
-----END CERTIFICATE-----
30 changes: 15 additions & 15 deletions auth/strategies/x509/testdata/client_intermediate_expired
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
-----BEGIN CERTIFICATE-----
MIIEFDCCAvygAwIBAgIUMzIDTZvaLUZEQhgvuQdMD9KkV84wDQYJKoZIhvcNAQEL
MIIEFDCCAvygAwIBAgIUEBihLJd7wgzD8Fy6psZtIooFtzgwDQYJKoZIhvcNAQEL
BQAwfTELMAkGA1UEBhMCR0IxEDAOBgNVBAgTB0VuZ2xhbmQxDzANBgNVBAcTBkxv
bmRvbjENMAsGA1UEChMEVEVTVDEdMBsGA1UECxMUVEVTVCBJbnRlcm1lZGlhdGUg
Q0ExHTAbBgNVBAMTFFRFU1QgSW50ZXJtZWRpYXRlIENBMB4XDTE5MTIzMTIzNTkw
MFoXDTE5MTIzMTIzNTkwMFowbDELMAkGA1UEBhMCR0IxEDAOBgNVBAgTB0VuZ2xh
bmQxDzANBgNVBAcTBkxvbmRvbjENMAsGA1UEChMEVGVzdDETMBEGA1UECxMKVGVz
dCBIb3N0czEWMBQGA1UEAxMNaG9zdC50ZXN0LmNvbTCCASIwDQYJKoZIhvcNAQEB
BQADggEPADCCAQoCggEBAKcVayFZ7CAK4lUw1taE6FTfTdJ5kwKemP38tW07qjdE
MbOLuojXOq9mWafo3SLG1doS2nzko85gdjoQg5N73MUVxTs5of/Oqujiz0XvhfCj
bj0izwSQLXi5BhgwHbxX8IGLvfa7A+OznP2wSPE1oiKy2w1LxjZ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