java - keytool: import certificate chain from several .cer files -


Our IT department has given me 4 serial files, which constitutes the certificate chain: thawte_root.cer-> intermediate1_pem .cer-> gt; Intermediate2_pem.cer-> our_company.cer.

I need to sign some code (via Jerseyer) using our_company.cer.

Therefore, I have to make a keystore, in which our_company.cer and series-to-the-root.

I have tried to add these 4 files together using a notepad and then import the resultant file, but the main store only importes for the first time and I try to launch Jerseyer , I have not been issued a certificate chain: our_company. Referencing a valid keystore key entry with a private key and related public key certificate chain. needed."

When I only import our_company.cer or when I import each certificate one by one, I get the same message.

So the question is: How can I import 4 series as a series?

Thanks in advance Vitali

As you probably know, you need a private key to sign code, And customers using your code will have to rely on this public key.

You have CER files that have certificate files consistent with the public key when you import them with the keytool -importcert without the code related to them, as a trusted certificate. Is imported. (For more information see, depending on your system setup, they probably do not need to import them all - for example, you probably trust the thaw certificate.)

Since you want to sign the code as your company, you will need a private key before our_company.cer - I think your IT department can provide it because it has been used to send Thought to Thought The letter signature will be used to generate the request. If they are not willing to pass it to you, you will need to generate the keytool -genkeypair personal / public key combination using your code, keytool -certreq Generate a CSR with and send it to your IT department, which can then issue you a certificate. In this case, the final series of trust thawte_root.cer-> intermediate 1_ap-> -> intermediate-2_prem-> -> our_company.sy-> your_department.cer .

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -