Skip navigation
18508 Views 8 Replies Latest reply: Jan 14, 2012 5:40 AM by Pallav RSS
Coolcat KeyContributor 797 posts since
Mar 19, 2007
Currently Being Moderated

May 2, 2007 2:14 PM

Import SSL Key and Certificate

Hi,

I got an SSL Key and Certificate from my CA. I have some problems to import them into Openfire 3.3.0.

 

I got both files in PEM-Format. Because Openfire says there are in bad format, I use only this parts:

---BEGIN RSA PRIVATE KEY---

....blabla...

---END RSA PRIVATE KEY---

 

---BEGIN CERTIFICATE---

....blabla...

---END CERTIFICATE---

 

I tried the hidden page, mentioned here, to import the files.

https://my-jabber-server.com:9091/import-certificate.jsp

But I get the following:

There was an error one importing private key and signed certificate. Error message: Failed to establish chain from reply

The I tried to import the PEM-Cert form my CA with Java-Keytool:

cd openfire/resources/security

keytool -import -v -trustcacerts -file cert-from-ca.pem -keystore truststore

but this doesn''t help.

 

My CA (my university) is not NOT a Top-Level-CA itself. The certificate chain ends at DFN Top Level CA, which is NOT trusted by any of "default" Top-Level-CAs. Maybe this is the problem...

 

Any ideas?

 

thanks in advance,

Coolcat

 

Message was edited by: Coolcat

  • Bronze 4 posts since
    Jun 20, 2007
    Currently Being Moderated
    Jul 12, 2007 12:00 AM (in response to Coolcat)
    Re: Import SSL Key and Certificate

    I had exactly the same problem,

     

    here''s how to do it.

     

    get the root CA certificate from your CA (your university in that case)

     

    use keytool to import it into $OPENFIRE_HOME/resources/security/truststore

     

    then take you''re rsa key and certificate to the import-certificate.jsp page and import them.

     

    i still have a message that a certificate is missing but I think that should be solveable....

     

     

    hope that helps

  • Bronze 4 posts since
    Jun 20, 2007
    Currently Being Moderated
    Jul 12, 2007 12:49 AM (in response to Coolcat)
    Re: Import SSL Key and Certificate

    if you care to find out,

     

    i don''t get why i need a *.example.com certificate for the server. my server is jabber.example.com and imho that should be the only entrypoint to the jabber service. all other things are

     

    a) either discovered via dns or

    b) iirc wrapped in xml request (e.g. broadcast.openforce.com doesn''t exist it just describes the service)

      • Calculating status... 1 posts since
        Aug 2, 2007
        Currently Being Moderated
        Aug 2, 2007 2:13 PM (in response to Coolcat)
        Re: Import SSL Key and Certificate

        Here is what worked for me, after a week of racking my brain on this issue. My certs were generated using openssl version 0.9.8b and my certs were signed by Digital Signature Trust.

         

        1. Convert your private key to DER format

         

        openssl pkcs8 -topk8 -nocrypt -in jabber.key -inform PEM -out jabber.key.der -outform DER

         

        2. Convert your cert and root cert(Digital Signature Trust root certs) and/or intermediate cert into DER format

         

        openssl x509 -in jabber.crt -inform PEM -out jabber.crt.der -outform DER

        openssl x509 -in roots.crt -inform PEM -out roots.crt.der -outform DER

         

        3.  cat jabber.crt.der roots.crt.der > jabber.der

         

        Now I used the keystore file from the original install from /opt/openfire/resources/security with JDK 1.6.0_02 and a program similair to AgentBob, which is from an ex employee where I work.

         

        java KeyStoreImport /opt/openfire/resources/security/keystore jabber.der jabber.key.der jabber.imsa.edu

         

        This imported and now showed it was signed and not in a pending status.  Please let me know if you want me to post the KeyStoreImport java file and class I used.

  • Pallav Bronze 3 posts since
    Jan 14, 2012
    Currently Being Moderated
    Jan 14, 2012 5:40 AM (in response to Coolcat)
    Import SSL Key and Certificate

    Hi All,

     

    I am new to Openfire. I want to configure Openfire to use SSL. For that , I have obtained a SSL certificate from Thwate. But I dont know how to use this certificate from OpenFire admin console. Can you please reply ...its urgent.

     

    Thanks in advance

More Like This

  • Retrieving data ...

Bookmarked By (0)