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

Secure hdfs setup not idempotent due to incorrect keystore path #21

Open
cartershanklin opened this issue Sep 10, 2015 · 0 comments
Open

Comments

@cartershanklin
Copy link

[root@nn ssl-ca]# keytool -list -alias horton-ca -keystore /usr/java/default/jre/lib/security/cacerts -storepass changeit
keytool error: java.lang.Exception: Alias does not exist
[root@nn ssl-ca]# keytool -importcert -noprompt -alias horton-ca -keystore /usr/lib/jvm/java/jre/lib/security/cacerts -storepass changeit
keytool error: java.lang.Exception: Certificate not imported, alias already exists

Correct path is /etc/pki/java/cacerts

Note that

[root@nn ssl-ca]# ls -l /usr/lib/jvm/java/jre/lib/security/
total 40
lrwxrwxrwx 1 root root 41 Sep 10 02:28 cacerts -> ../../../../../../../etc/pki/java/cacerts

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

No branches or pull requests

1 participant