Skip to content

Commit

Permalink
Merge pull request #253 from zowe/feature/various-keyring
Browse files Browse the repository at this point in the history
config for various types of keyrings
  • Loading branch information
1000TurquoisePogs authored Nov 21, 2023
2 parents ac02cf3 + 848ef7c commit e6bd988
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions defaults/serverConfig/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,23 @@ components:
} else { return Number(7556); } };
a() }}"
keys: '${{ function a() {
if (zowe.certificate?.keystore?.type == "JCERACFKS") {
if (zowe.certificate?.keystore?.type && zowe.certificate.keystore.type.match("JCE.*KS")) {
return [ zowe.certificate.keystore.file+"&"+zowe.certificate.keystore.alias ];
} else if (zowe.certificate?.pem?.key) {
return [ zowe.certificate.pem.key ];
} else {
return [ "../defaults/serverConfig/zlux.keystore.key" ]; } };
a() }}'
certificates: '${{ function a(){
if (zowe.certificate?.keystore?.type == "JCERACFKS") {
if (zowe.certificate?.keystore?.type && zowe.certificate.keystore.type.match("JCE.*KS")) {
return [ zowe.certificate.keystore.file+"&"+zowe.certificate.keystore.alias ];
} else if (zowe.certificate?.pem?.certificate) {
return [ zowe.certificate.pem.certificate ];
} else {
return [ "../defaults/serverConfig/zlux.keystore.cer" ]; } };
a() }}'
certificateAuthorities: '${{ function a() {
if (zowe.certificate?.truststore?.type == "JCERACFKS") {
if (zowe.certificate?.truststore?.type && zowe.certificate.truststore.type.match("JCE.*KS")) {
return [ zowe.certificate.truststore.file ];
} else if(zowe.certificate?.pem?.certificateAuthorities) {
if (Array.isArray(zowe.certificate.pem.certificateAuthorities)) {
Expand Down
4 changes: 2 additions & 2 deletions schemas/app-server-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -667,14 +667,14 @@
},
"safKeyringCertObject": {
"type": "string",
"pattern": "^safkeyring:(\/\/)+.*$"
"pattern": "^safkeyring.*:(\/\/)+.*$"
},
"pathCertObject": {
"type": "string",
"not": {
"anyOf": [
{ "pattern": "^file:\/\/.*$" },
{ "pattern": "^safkeyring:(\/\/)+.*$" }
{ "pattern": "^safkeyring.*:(\/\/)+.*$" }
]
}
},
Expand Down

0 comments on commit e6bd988

Please sign in to comment.