LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Key protection algorithm not found: java.security.KeyStoreException: Certificate chain is not valid. (https://www.linuxquestions.org/questions/linux-newbie-8/key-protection-algorithm-not-found-java-security-keystoreexception-certificate-chain-is-not-valid-4175619107/)

servaed 12-06-2017 09:11 PM

Key protection algorithm not found: java.security.KeyStoreException: Certificate chain is not valid.
 
Hi All,

I need help about keytool utility to export the private key and certificate to a PKCS12 file

I run this command but got some error, tried to search in google. Haven't got any clue
Code:

[root@msimaster1 ~]# keytool -importkeystore -srckeystore /opt/cloudera/security/pki/$(hostname -f)-agent.jks \
> -srcstorepass P@ssw0rd -srckeypass P@ssw0rd -destkeystore /opt/cloudera/security/pki/$(hostname -f)-agent.p12 \
> -deststoretype PKCS12 -srcalias $(hostname -f)-agent -deststorepass P@ssw0rd -destkeypass P@ssw0rd
Problem importing entry for alias msimaster1-agent: java.security.KeyStoreException: Key protection  algorithm not found: java.security.KeyStoreException: Certificate chain is not valid.
Entry for alias msimaster1-agent not imported.

Can someone help to identify ths issue?

AwesomeMachine 12-06-2017 10:16 PM

Keytool is probably looking for a ca certificate which doesn't exist.

servaed 12-06-2017 11:08 PM

Thanks for your reply,

But how do I check this, or solve this issue?


All times are GMT -5. The time now is 06:31 AM.