-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #3083: CertificateException due to PEM being decoded in CertUtils
Use java.util.Base64 instead of okio.ByteString to decode base64 encoded string since former one throws IllegalArgumentException in case input string in invalid base64 encoded string. okio.ByteString returns non-null value even for invalid base64 decoded strings Signed-off-by: Rohan Kumar <[email protected]>
- Loading branch information
1 parent
b169f52
commit e580fe4
Showing
4 changed files
with
80 additions
and
15 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
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
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
28 changes: 28 additions & 0 deletions
28
kubernetes-client/src/test/resources/ssl/valid-non-base64-encoded-cert.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,28 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIE2jCCAsICCQD4ptRhuthO0DANBgkqhkiG9w0BAQsFADAvMQswCQYDVQQGEwJV | ||
UzELMAkGA1UECAwCQ0ExEzARBgNVBAMMCk5vbi1VbmlxdWUwHhcNMTkwNzAzMjIw | ||
MjM4WhcNMjQwNzAxMjIwMjM4WjAvMQswCQYDVQQGEwJVUzELMAkGA1UECAwCQ0Ex | ||
EzARBgNVBAMMCk5vbi1VbmlxdWUwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK | ||
AoICAQCxkBiScuviETwrbhBIbrl1PaJJU0cICccTBmkSXdApX1teayhI6LfLy5oO | ||
oO3jOUjn69TCASE5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