-
Notifications
You must be signed in to change notification settings - Fork 65
feat: Add jks to supported formats #6153
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
base: main
Are you sure you want to change the base?
Conversation
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.
In addition, tests should be updated (and all the other checks).
Co-authored-by: David Knaack <david.knaack@sap.com>
| if (!destination.keyStorePassword) { | ||
| throw Error('Keystore password is required for JKS format'); | ||
| } |
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.
AFAICT this is optional and removing it might help with the most recent update by the user.
| if (!destination.keyStorePassword) { | |
| throw Error('Keystore password is required for JKS format'); | |
| } |
| The node client supports only these store formats https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions. | ||
| */ | ||
| const supportedCertificateFormats = ['p12', 'pfx', 'pem']; | ||
| const supportedCertificateFormats = ['p12', 'pfx', 'pem', 'jks']; |
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.
Not completely sure, but I think this can be listed there too now:
| const supportedCertificateFormats = ['p12', 'pfx', 'pem', 'jks']; | |
| const supportedCertificateFormats = ['p12', 'pfx', 'pem', 'jks', 'keystore']; |
Closes SAP/ai-sdk-js-backlog#358.