-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: optimize the error message for unmatchable certificate bundle (#113
) Fix: - optimize the error message for unmatchable certificate bundle (correct DNs but incorrect public key) - optimize error message for partial chain Test: Previous error message: ```json { "errorCode": "ERROR", "errorMessage": "Error occurred during a cryptographic operation." } ``` Current error message: ```json { "errorCode": "VALIDATION_ERROR", "errorMessage": "Failed to build the X509 chain. Error occurred during a cryptographic operation. The certificate bundle is unreadable. Please ensure the certificate bundle matches the specific certifcate." } ``` Resolves #114 Signed-off-by: Junjie Gao <[email protected]> --------- Signed-off-by: Junjie Gao <[email protected]>
- Loading branch information
Showing
3 changed files
with
42 additions
and
4 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
19 changes: 19 additions & 0 deletions
19
Notation.Plugin.AzureKeyVault.Tests/TestData/unmatchable_root.pem
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDBzCCAe+gAwIBAgIUIx7ad2iEjmGO+dMOMcE8bEJUH1AwDQYJKoZIhvcNAQEL | ||
BQAwEjEQMA4GA1UEAwwHVGVzdCBDQTAgFw0yMzA1MjQwODQxMTJaGA8yMTIzMDQz | ||
MDA4NDExMlowEjEQMA4GA1UEAwwHVGVzdCBDQTCCASIwDQYJKoZIhvcNAQEBBQAD | ||
ggEPADCCAQoCggEBAJY6tHwYDw4MhBD/5lGymyIkCnsaOHFf8OiZwgTTpstvFVH/ | ||
go9kr//BR9B/q7uewXVM4z+2/30xmtxN37mv+T45jFXkJwK00P5B8wFt9+oeGroh | ||
0eM8692we76NqTXPC6P2Td9dysyJ2f4ELLC7alinpLc2R6VaX5HLbJxZegrrP/w/ | ||
CF0hiUzbdP9TfLqlmPcV29Tp4S3sLHhM3vmezF7XML4ciUybu3HlQKHA99edGxRs | ||
wh6aqxY/NmD+YtRg/9j3T7kmNLfXx0lbsQ5gKvMRSUGf3F5GLw/eGwz4vbTWmHTD | ||
xxWD07NSilvEhMjXzT0IymLSnecCPfWses7CvX0CAwEAAaNTMFEwHQYDVR0OBBYE | ||
FNsu62tfPB+kluRc4WrhN2kBQfdEMB8GA1UdIwQYMBaAFNsu62tfPB+kluRc4Wrh | ||
N2kBQfdEMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAHtVhbvR | ||
Fo26F+KmGRUgJgbz/0MIj5uOvynY6fpT8SynBYpx4z21esWCGAtt7X563prUfGXb | ||
rxQFYZ7FVAByOBxnGXEMfvcr1ON5wpnMsWE9WA2KA0I/uQFNKgBJedbGsvaptbeu | ||
zXIzMHWF/jblN5lmnRSW0QKqbY9D9B3Nfr6RW25X1E6zgabBoVEZBtqAT/pLFVIh | ||
es6kXh3+/i1K+F/olAyna0t+xAQjCgZaBKatEpaj95eiPQB6ODfi57xWeKuA7IPn | ||
a2obfC6s9Y2RhzUNSlre8/e56qzF7j0H8/rilkv1s6C425PfcSlAmybB8CL91XA6 | ||
uxfr1nYPtXzHr/s= | ||
-----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