Wednesday, July 6, 2016

wls: How to import SSL cert into WLS DemoTrust.jks keystore file

In WLS, you can import your own SSL cert into it’s trust keystore file to invoke "https" contents. Here is how you do that with the default WLS DemoTrust.jks file.
bash> cd $WL_HOME/server/lib
bash> keytool -keystore DemoTrust.jks -storepass DemoTrustKeyStorePassPhrase -list
bash> keytool -keystore DemoTrust.jks -storepass DemoTrustKeyStorePassPhrase -importcert -alias mycert -file mycert.pem

# Or to delete the entry
bash> keytool -keystore DemoTrust.jks -storepass DemoTrustKeyStorePassPhrase -delete -alias mycert
The file mycert.pem can be obtained by any modern browser when you visit the "https" site. For example using Firefox, you can follow these steps to export the cert file:
  1. Click on the Lock icon next to the URL in the broswer
  2. Click More Information button, then go to the "Security Tab"
  3. Click View Certificate button, then go to the Details tab
  4. Click Export …​ button
  5. On the bottom right corner dropdown, select X.509 Cerificate with chain (PEM)
  6. Type name of file to save (eg: mycert.pem) and then click Save button

22 comments:

  1. Thanks for sharing, nice post! Post really provice useful information!

    Hương Lâm chuyên cung cấp máy photocopy, chúng tôi cung cấp máy photocopy ricoh, toshiba, canon, sharp, đặc biệt chúng tôi có cung cấp máy photocopy màu uy tín, giá rẻ nhất.

    ReplyDelete
  2. Thanks for sharing.

    Best HRMS Software Solutions in Bangalore
    Zenetial is the top HRMS Software Solutions in Bangalore. We will provide software solutions to your organisation to track employee attendance, Payslips and other information etc. https://zenetial.com/

    ReplyDelete
  3. Good post, provides useful information.

    Best Neurologist Specialists in Banglore contact best-neuro-hospital-in-bangalore

    ReplyDelete
  4. its very interesting while reading it,thank you for posting such a good article.
    For sofa renovation contact thesofastore they gives best
    Sofa Refurbishing in Yediyur,Bangalore

    ReplyDelete
  5. Nice Post. Thanks For Sharing this Information.

    SRI ANNAPOORNESHAWARI ASTROLOGY CENTER.Best Astrologer In dhule

    ReplyDelete
  6. Good Article you know your article it's useful me. it's really good and helping your article and yes thanks for sharing information
    For web design & development service contact Multisoft digital technologies, They have
    Web Development in Madiwalal

    ReplyDelete
  7. Nicely well-written article.Keep sharing like this article.
    For sofa renovation visit thesofastore,the provieds best
    Best Sofa Repair Services in Ashok Nagar,Bangalore

    ReplyDelete
  8. Nice post.
    Visit website for best astrological services contact. Best Astrologer In Mahalakshmipuram

    ReplyDelete
  9. excellent post,Thanks for sharing.
    Visit our website for best astrological services contact. Best Astrologer In Prakash Nagar

    ReplyDelete
  10. Nice post. Keep sharing. Thanks for sharing.
    Visit our website for best astrological services contact. Best Indian Astrologer in Bedok

    ReplyDelete
  11. Thank you for the great post!
    Click here to get a best astrological services contact. Best Astrologer in Chikkaballapur

    ReplyDelete
  12. Nice Post! I liked it.

    Durgaanugarha astrology center. Best Astrologer In yelahank

    ReplyDelete
  13. Very good article, Thank you
    For sofa renovation contact thesofastore they gives best
    Sofa Refurbishing in Marathahalli,Bangalore

    ReplyDelete
  14. Its very interesting while reading it,thank you for posting such a good article.
    For web design & development service contact Multisoft digital technologies, We have Digital Marketing in Srirangapatna

    ReplyDelete
  15. Thanks for sharing, nice post! Post really providing useful information!
    For best astrology services contact us Vashikaran Astrologer in BTM Layout

    ReplyDelete