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

32 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. Thank you for the great post!

    SRIKRISHANA ASTROLOGY.Vashikaran Astrologer in Hubli

    ReplyDelete
  7. Very good article,Thank you
    For sofa repair service contact thesofastore they gives
    Best Sofa Repair Services in Austin Town,Bangalore

    ReplyDelete
  8. Talk to Famous Astrologer for accurate solution of Life & Love Marriage Problem. 100% Secure & Private Quick Solution on Call, 25+ Year Experience, 24x7 Available. Call Now: 94488 86845. We are the Top Rated Astrologer in Bangalore. 100% Guranteed and Genuine Solution Given. 5000+ of Satisfied Clients. Legitimate and Transparent Charges. Private Consultation Available. Visit More: Kollegal Astrology in Bangalore

    ReplyDelete
  9. 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
  10. 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 sofa repair work contact thesofastore gives
    Best Sofa Repair Services in Hongasandra,Bangalore

    ReplyDelete
  11. 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
  12. Nice post.
    Visit website for best astrological services contact. Best Astrologer In Mahalakshmipuram

    ReplyDelete
  13. Nice blog. Nice explanation with helpful information.
    For web design & development service contact Multisoft digital technologies, They have
    Web Development in Karnataka

    ReplyDelete
  14. Intresting topic, nice post
    Land Surveyors in Bangalore, contact us land surveyors in bangalore

    ReplyDelete
  15. Excellent post Keep up the good work
    Soundproof Windows Bangalore , Contact us soundproof windows bangalore

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

    ReplyDelete
  17. Good post, thanks for sharing

    Best Dental Hospital in Bangalore,Contact us best dental hospital in bangalore

    ReplyDelete
  18. Excellent post Keep up the good work

    Best Cardiologist Doctor in Basavanagudi Bangalore,Contact us best cardiologist doctor in basavanagudi bangalore

    ReplyDelete
  19. Intresting topic, nice post

    Best Dermatologist in Bangalore,Contact us best dermatologist in bangalore

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

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

    ReplyDelete
  22. Nice Post! I liked it.

    Durgaanugarha astrology center. Best Astrologer In yelahank

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

    ReplyDelete
  24. 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
  25. Hii your blog is looking good.Thanks for sharing this information and keep posting.
    For best indian astrology services contact us Best Astrologer in Rossland

    ReplyDelete
  26. Good article,Keep posting like this article,it is helpful to us,thank you.
    For best astrology services contact us Vashikaran Astrologer in Dharwad

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

    ReplyDelete