-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The test csr (and the certificate generated from it) where both missing a proper subject. This fix replaces both of these with fixtures which contain a proper X509 Subject and adds additional tests to check whether or not the X509 subject in the certificate returned by enrollment matches the expected enrollmentID. Also modified enrollmentID to match the ID used in the csr fixture Change-Id: If226906c5848dffc6989d656a3aa10354c9edefb Signed-off-by: Gari Singh <[email protected]>
- Loading branch information
1 parent
1f08e84
commit b26c06e
Showing
3 changed files
with
35 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIB5DCCAYqgAwIBAgIUAeWmGIvYO6Lt7u7l+oFt9vtYb00wCgYIKoZIzj0EAwIw | ||
MIIB8zCCAZqgAwIBAgIUWvyWRhnNjkgI240frgUO1ajr/qMwCgYIKoZIzj0EAwIw | ||
YzELMAkGA1UEBhMCVVMxFzAVBgNVBAgTDk5vcnRoIENhcm9saW5hMRAwDgYDVQQH | ||
EwdSYWxlaWdoMRswGQYDVQQKExJIeXBlcmxlZGdlciBGYWJyaWMxDDAKBgNVBAsT | ||
A0NPUDAeFw0xNjExMjExNTQwMDBaFw0xNzExMjExNTQwMDBaMAAwWTATBgcqhkjO | ||
PQIBBggqhkjOPQMBBwNCAAS67vg2BmNtNCqcrIIWRlF8lh8L25mbZnMxV4PX591H | ||
nLmPO+c7RHpR6tnP0yX66agijNaUsMx9oSCk8G1KyyY0o38wfTAOBgNVHQ8BAf8E | ||
BAMCBaAwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQC | ||
MAAwHQYDVR0OBBYEFITzL4hoCtVw3p3xBq1hfhuXxNyMMB8GA1UdIwQYMBaAFODb | ||
8NwdS9aimQJXEujDqfrfL/1CMAoGCCqGSM49BAMCA0gAMEUCIQDLQyurOjG+cQuP | ||
PFo+5ucgMPnzGWYScG78aymca4HNPQIgcmKaD4OTtRF57HkTIAeHFLCs65tkfmEj | ||
lPpXk7ZzPaQ= | ||
A0NPUDAeFw0xNjExMjcxMjI0MDBaFw0xNzExMjcxMjI0MDBaMBAxDjAMBgNVBAMT | ||
BWFkbWluMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEnrhMQCKVUaJVZywJtkeb | ||
dg4HHoYz7lb6knfglfX3R7OuX504snLlgCsSL8FgjMEMWINVQRA/NtT9kec2j5I7 | ||
OaN/MH0wDgYDVR0PAQH/BAQDAgWgMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEF | ||
BQcDAjAMBgNVHRMBAf8EAjAAMB0GA1UdDgQWBBSMVEXbf7pQjqpf2G/bW6S6DTHD | ||
HjAfBgNVHSMEGDAWgBTg2/DcHUvWopkCVxLow6n63y/9QjAKBggqhkjOPQQDAgNH | ||
ADBEAiBH2XyV4MxNb11tyljqo+4iF53GjF26w+JBxHg5T/oOxwIgSUpFO4z0Zd0O | ||
b/f7YhvdYtAhJqqJDv5u21oZrugjXIw= | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
-----BEGIN CERTIFICATE REQUEST----- | ||
MIG8MGICAQAwADBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABLru+DYGY200Kpys | ||
ghZGUXyWHwvbmZtmczFXg9fn3UecuY875ztEelHq2c/TJfrpqCKM1pSwzH2hIKTw | ||
bUrLJjSgADAMBggqhkjOPQQDAgUAA0gAMEUCIH7xysvTaG1GanUqVdRyHeJH+cyh | ||
WU6YI3fK7Ye3JfiAAiEAqNGqNvODUe2WUKXUbrqOg5ajry3MfQgx+fZA2ogtlJc= | ||
MIHQMHUCAQAwEzERMA8GA1UEAwwIdGVzdFVzZXIwWTATBgcqhkjOPQIBBggqhkjO | ||
PQMBBwNCAASSduelwzsHgCoVVJtMqaEbqkDVXQZiE68ffFc2OMnljKlx0/ndzB2H | ||
jWU9GhEG+zmjMBcARr6b/xas96wZeQ7LoAAwDAYIKoZIzj0EAwIFAANJADBGAiEA | ||
8ODGpt+sqGIMj517SFkNtpMMAlcharmLFsDMWhxlcioCIQDfSU0pOkaEEn0/pWOU | ||
LxB2qFcakcohWyEFQHHDNJVFRw== | ||
-----END CERTIFICATE REQUEST----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters