WebSphere Application Server & Liberty

 View Only
  • 1.  Postgres SSL certs configuration in IBM WebSphere application server truststore.

    Posted 4 days ago

    Hi Team,

    We are trying to connect to postgres db server that has SSL configuration from WAS. We were provided with root.crt, client.crt, client.pk8 and client.key for successful ssl handshake.
    We were able to import client.crt and root.crt into truststore but not able to provide keys since they are in different format that is not recognized by Was. 

    Could you please help us in this regard?

    Thanks,

    Neelima



    ------------------------------
    Neelima Sindhu Uppugandla
    ------------------------------


  • 2.  RE: Postgres SSL certs configuration in IBM WebSphere application server truststore.

    Posted 3 days ago

    Hi, can you explain the "different format" they are in?  

    Brian



    ------------------------------
    Brian S Paskin
    Sr. Technology Engineer
    IBM Cloud Engineering
    ------------------------------



  • 3.  RE: Postgres SSL certs configuration in IBM WebSphere application server truststore.

    Posted 3 days ago

    Hi Brian keys provided are in .pk8 and .key formats. Which are same keys in different formats.

    Thanks,

    Neelima



    ------------------------------
    Neelima Sindhu Uppugandla
    ------------------------------



  • 4.  RE: Postgres SSL certs configuration in IBM WebSphere application server truststore.

    IBM Champion
    Posted 3 days ago

    Hello Neelima,

      In addtion to Brian's question.

      You have client.pk8 and client.key are they the same key in different formats?

      If client.pk8 is the key (in pkcs8 format) corresponding to client.crt you can use openssl to convert that key and crt to a pkcs12 format keystore (client.p12) that you can import into WebSphere KeyStore.

      openssl pkcs12 -export -out client.p12 -inkey client.pk8 -in client.crt

      Hope this helps.  Tell us if you need more support

    Regards

      Gabriel Aberasturi



    ------------------------------
    Gabriel Aberasturi
    Versia Sistemas TI
    ------------------------------



  • 5.  RE: Postgres SSL certs configuration in IBM WebSphere application server truststore.

    Posted 3 days ago

    Hi Gabriel,

    Yes same key in different formats .pk8 and .key. We'll try the suggested solution and let you know if it works and need any further assitance.

    Thanks,

    Neelima



    ------------------------------
    Neelima Sindhu Uppugandla
    ------------------------------



  • 6.  RE: Postgres SSL certs configuration in IBM WebSphere application server truststore.

    Posted 3 days ago

    Hi Gabriel,

    We tried above command and got this error . Any insights on this ?

    Thanks,

    Neelima



    ------------------------------
    Neelima Sindhu Uppugandla
    ------------------------------



  • 7.  RE: Postgres SSL certs configuration in IBM WebSphere application server truststore.

    IBM Champion
    Posted 2 days ago

    Hello Neelima,

      Is server.pk8 in DER (binary) or PEM (Plain text) format? if you can read in a text editor server.pk8 file the is PEM if not is DER. Thas is the questions Brian is asking for.

      Try the next command line 

      openssl pkcs12 -export -out client.p12 -inkey client.pk8 -in client.crt -nocrypt

      Hope this helps. Tell us if you nedd more supoprt

    Regards



    ------------------------------
    Gabriel Aberasturi
    Versia Sistemas TI
    ------------------------------