-
Notifications
You must be signed in to change notification settings - Fork 36
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
Add zcrypto library use for jceccaracfks support #529
Conversation
Signed-off-by: 1000TurquoisePogs <[email protected]>
Signed-off-by: 1000TurquoisePogs <[email protected]>
Signed-off-by: 1000TurquoisePogs <[email protected]>
Signed-off-by: 1000TurquoisePogs <[email protected]>
…eyring_js or zcrypto Signed-off-by: 1000TurquoisePogs <[email protected]>
1a2f319
to
d4de2e7
Compare
Signed-off-by: 1000TurquoisePogs <[email protected]>
Signed-off-by: 1000TurquoisePogs <[email protected]>
Signed-off-by: 1000TurquoisePogs <[email protected]>
Signed-off-by: 1000TurquoisePogs <[email protected]>
Signed-off-by: 1000TurquoisePogs <[email protected]>
try { | ||
if (os.platform() == 'os390') { | ||
keyring_js = require('keyring_js'); | ||
if (USE_KEYRING_JS) { |
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.
turn this into a zowe.yaml config parameter
@@ -300,7 +321,11 @@ WebServer.prototype = { | |||
let certificateList; | |||
if(userId && keyringName) { | |||
try { | |||
certificateList = keyring_js.listKeyring(userId, keyringName); | |||
let includingPrivateKey = false; |
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.
add a note saying this will only work if there are truly only 2 types of objects in a keyring, but thus far that's all i've seen when working with users.
Seems not possible due to PKDS keys not being exportable via this technique. Instead, AT-TLS must be used. |
To address zowe/community#1851 for the app-server, the https://www.npmjs.com/package/zcrypto library uses gsk/systemssl for getting keyrings in node.
ZSS is also a user of gsk, and was tested as working for ICSF, so I am hopeful that switching away from our own keyring_js library towards this library will yield better long-term results for keyring support within the app-server.
In this PR, both libraries are still available, though only switchable via a const that is not yet exposed as a configuration item.
How to test:
In zowe's config, you want to use keyrings of either JCERACFKS type or of JCECCARACFKS.
We already support JCERACFKS, so we should see no regression (server loads and is accessible for a url such as the desktop or /plugins)
If we're successful with JCECARACFKS, we should see the same behavior, whereas before we could not load the key/cert at all.