-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Remove X-Pack PemUtils and DerParser #76004
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ | |
| package org.elasticsearch.xpack.core.ssl; | ||
|
|
||
| import org.elasticsearch.ElasticsearchException; | ||
| import org.elasticsearch.common.ssl.PemUtils; | ||
| import org.elasticsearch.core.Nullable; | ||
| import org.elasticsearch.common.settings.SecureString; | ||
| import org.elasticsearch.env.Environment; | ||
|
|
@@ -22,6 +23,7 @@ | |
| import java.nio.file.NoSuchFileException; | ||
| import java.nio.file.Path; | ||
| import java.security.AccessControlException; | ||
| import java.security.GeneralSecurityException; | ||
| import java.security.KeyStoreException; | ||
| import java.security.NoSuchAlgorithmException; | ||
| import java.security.PrivateKey; | ||
|
|
@@ -120,6 +122,8 @@ private static PrivateKey readPrivateKey(String keyPath, SecureString keyPasswor | |
| throw unreadableKeyConfigFile(accessException, KEY_FILE, key); | ||
| } catch (AccessControlException securityException) { | ||
| throw blockedKeyConfigFile(securityException, environment, KEY_FILE, key); | ||
| } catch (GeneralSecurityException e) { | ||
| throw new IllegalStateException("Error parsing Private Key from: " + keyPath, e); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The X-Pack PemUtils would throw this |
||
| } | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't exactly in scope for this PR, but a test case was using the new method so it made sense to add it now..