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

Fixing the SAF keyring error through console logging it. #565

Open
wants to merge 2 commits into
base: v2.x/staging
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions lib/webserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,12 @@ function loadPem(locations, type, keyrings, pass) {
let saf = [];
types.filter(type=> type.startsWith('safkeyring'))
.forEach((type)=> { saf = saf.concat(locationsByType[type]) });
if (saf.length > 0 && os.platform() != 'os390') {
bootstrapLogger.severe('ZWED0145E');//Cannot load SAF keyring content outside of z/OS'
process.exit(constants.EXIT_NO_SAFKEYRING);
} else if (saf.length > 0 && keyring_js) {
if (saf && os.platform() != 'os390') {

// bootstrapLogger.severe('ZWED0145E');//Cannot load SAF keyring content outside of z/OS'
// process.exit(constants.EXIT_NO_SAFKEYRING);
console.log("SAF Keyring error!")
} else if (saf && keyring_js) {
saf.forEach((safEntry)=> {
/*
In the latest code it's possible the entry could start with
Expand Down