cancel
Showing results for 
Search instead for 
Did you mean: 

Imported private key has the key chain in the wrong order.

Former Member
0 Kudos

Hi Guys,

We have imported a new private key which has been signed by both an intermediate and root certificate authority. When imported in the visual administrator the Root CA is in CA[1] and the Intermediate CA is in CA[2] (Shown below with all sensitive information removed), this is causing the server validating the key to reject the communication.

I've tried loading the key without the CA's then loading them as per [https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1413] [original link is broken] [original link is broken] [original link is broken]; but it didn't work.

Could anyone please explain how to reverse the order of CA[1] and CA[2]?

Kind regards,

John

PRIVATE KEY

[ creationDate ]: Wed Jul 16 11:07:14 BST 2008

[ algorithm ]: RSA

[ format ]: PKCS#8

CA[0]:

[ DN ]: O=removed,CN=removed@removed,EMAIL=removed-removed.com

[ issuerDN ]: CN=removed,OU=Private CA,O=Removed,C=IE

[ validNotBefore ]: Tue Jun 17 01:00:00 BST 2008

[ validNotAfter ]: Thu Jun 18 00:59:59 BST 2009

[ signAlgorithm ]: sha1WithRSAEncryption (1.2.840.113549.1.1.5)

[ fingerprint ]: removed

[ subjectKeyIdentifier ]: removed

[ publicKey ]:

[ algorithm ]: RSA

[ format ]: X.509

CA[1]:

[ DN ]: CN=Private CA Name,OU=Private Root CA,O=Private,C=IE

[ issuerDN ]: CN=Private CA Name,OU=Private Root CA,O=Private,C=IE

[ validNotBefore ]: Thu May 31 01:00:00 BST 2007

[ validNotAfter ]: Wed May 31 00:59:59 BST 2017

[ signAlgorithm ]: sha1WithRSAEncryption (1.2.840.113549.1.1.5)

[ fingerprint ]: Removed

[ subjectKeyIdentifier ]: Removed

[ publicKey ]:

[ algorithm ]: RSA

[ format ]: X.509

CA[2]:

[ DN ]: CN=Private CA Name,OU=Private CA,O=Private,C=IE

[ issuerDN ]: CN=Private CA Name,OU=Private Root CA,O=Private,C=IE

[ validNotBefore ]: Thu May 31 01:00:00 BST 2007

[ validNotAfter ]: Thu May 31 00:59:59 BST 2012

[ signAlgorithm ]: sha1WithRSAEncryption (1.2.840.113549.1.1.5)

[ fingerprint ]: removed

[ subjectKeyIdentifier ]: removed

[ publicKey ]:

[ algorithm ]: RSA

[ format ]: X.509

Accepted Solutions (0)

Answers (1)

Answers (1)

prateek
Active Contributor
0 Kudos

Instead of loading them using "Load button", try importing it using "Import CSR Response" button

Regards,

Prateek

Former Member
0 Kudos

Hi Prateek,

No joy I'm afraid. Importing the Root CA alone we got the following errors:

- Certificate Sequence must have three components

- Keystore error. Array index out of range.

I exported the certificate of the key with the key chain to have something aproximating a CSR response, but got the same errors.

The key was created outside XI and has already been signed. It is definitely valid as I've used it from another application.

Examining the key outside of the visual administrator, using Java Keytool for example, and the CA's are in the correct order.

I've also tried importing and re-exporting the private key from Internet Explorer & Mozilla before trying to import into XI.

I've tried using Open SSL to reassemble the key, which allowed it to be imported, and showed in the correct order, but was rejected by the authenticating server.

John

Former Member
0 Kudos

Just realised this is marked unanswered and I had solved the problem.

Exported the Imported key saving as a PK8. Saved the key, the public cert then the public certs of the two CAs.

Each is saved as a seperate file so I numbered them 1, 2, 3 & 4

Re-imported the key in the sequence 1, 2, 4, 3

Problem solved.

John