LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-06-2017, 09:11 PM   #1
servaed
LQ Newbie
 
Registered: Apr 2017
Posts: 5

Rep: Reputation: Disabled
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?
 
Old 12-06-2017, 10:16 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Keytool is probably looking for a ca certificate which doesn't exist.
 
Old 12-06-2017, 11:08 PM   #3
servaed
LQ Newbie
 
Registered: Apr 2017
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for your reply,

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
valid packet returning to INPUT after going through INVALID chain vincix Linux - Networking 1 06-09-2017 12:01 AM
SSL certificate generation question - No certificate matches private key etcetera Linux - General 1 04-10-2017 01:28 PM
Verify return code: 19 (self signed certificate in certificate chain) tikit Linux - Server 1 04-10-2012 05:21 PM
Building a certificate chain from the certificate using openSSL aravinda78 Linux - Security 1 11-10-2008 01:51 AM
java.security.KeyStoreException: JKS hushpuppies Linux - Server 0 08-20-2007 09:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration