fix: allow icsf keys when using at-tls #3612
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As noted in slack https://openmainframeproject.slack.com/archives/CC5UUL005/p1717504267648599
APIML cannot seem to read ICSF keys,
I have an ICSF key.
It looks like APIML cannot read it with java 8, so I am trying to use AT-TLS instead.
When I dont use AT-TLS, type=JCERACFKS does not work.
You get ZWEAM510E Invalid key alias 'site default icsf'
When type=JCECCARACFKS is used instead, you get
java.security.KeyStoreException: JCECCARACFKS not found
When I turn on AT-TLS, gateway still tries to read whatever is in yaml entry zowe.certificate, so even though it should work, the above errors still occur.
The only combination that seems to work is preventing APIML from reading the zowe yaml keystore content.
Reading the truststore appears fine; I dont believe ICSF changes CA content type, so APIML should still be able to validate keys that are incoming.
This probably doesnt work for situations in which APIML needs a key for its own use - Perhaps client cert still works because the cert comes from ATTLS, but situations like provider=saf wont work, because the key wouldnt be visible to gateway at startup.
So, this is a fix, but also a tradeoff.
If you would like to put this under some variable we can do so, since it is a tradeoff. I just could not think of the right name so I leave it up to the squad.
Type of change
Checklist: