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

Location of java.security file #3876

Open
rudatp opened this issue Jun 27, 2024 · 5 comments
Open

Location of java.security file #3876

rudatp opened this issue Jun 27, 2024 · 5 comments
Labels
clarification enhancement New feature or request

Comments

@rudatp
Copy link

rudatp commented Jun 27, 2024

I need a possibility to override the path to java.security file, to use customized version for ZOWE, without overwriting global settings

@MarkAckert MarkAckert added enhancement New feature or request clarification labels Jun 27, 2024
@rudatp
Copy link
Author

rudatp commented Jun 27, 2024

Actually it would be even better to have possibility to override any Java properties. I'm trying to run ZOWE with keystore type JCECCARACFKS. Even when I update the global java.security file, I get following error: invalid stream header: CECECACF
I had similar issue when configuring another product using Tomcat and the solution was to add additionally ${JAVA_HOME}"/lib/ext to LIBPATH and to overwrite java properties:
IJO="$IJO -Djava.protocol.handler.pkgs=com.ibm.crypto.hdwrCCA.provider|com.ibm.crypto.provider"
IJO="$IJO -Djava.security.properties=/share/etc/javacust/java.security"

@MarkAckert
Copy link
Member

Could you describe what you're configuring in the java.security file that isn't normally configured by Zowe as part of its install/configuration?

Or in the case it is defined in Zowe (e.g. we support JCECCARACFKS in zowe.setup.certificate.type), why you'd prefer using a java.security file?

Thanks!

@rudatp
Copy link
Author

rudatp commented Jun 28, 2024

The list of providers in java.security file must be updated to support JCECCARACFKS:
security.provider.1=com.ibm.crypto.hdwrCCA.provider.IBMJCECCA
Without this you get error: JCECCARACFKS not found.

@balhar-jakub
Copy link
Member

@rudatp What version of Java are you trying to use, and how do you configure the SAF Keyring specifically what is the first part e.g. safkeryring://

@rudatp
Copy link
Author

rudatp commented Jul 3, 2024

I'm using Java8_64. Only this version is listed as supported for ZOWE.
safkeyring:////user/keyring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants