Skip to content
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

Closed
wants to merge 10 commits into from

Conversation

1000TurquoisePogs
Copy link
Member

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.

@1000TurquoisePogs 1000TurquoisePogs force-pushed the feature/v2/zcrypto-library branch from 1a2f319 to d4de2e7 Compare March 4, 2024 20:45
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) {
Copy link
Member Author

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;
Copy link
Member Author

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.

@1000TurquoisePogs
Copy link
Member Author

Seems not possible due to PKDS keys not being exportable via this technique. Instead, AT-TLS must be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

1 participant