Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello,
i get two file .pfx and .crt . now i want to import it to my apache tomcate server for my website https , for example i have a website (http://test.com) no i want https://test.com
any Suggestion,
Last edited by hesisaboury; 04-09-2013 at 12:30 PM.
Hello,
i get two file .pfx and .crt . now i want to import it to my apache tomcate server for my website https , for example i have a website (http://test.com) no i want https://test.com
Thank u TB0ne
i use apache tomcat and it's different with apache , in apache i can use crt,pub and prv pem but in apache tomcat i have to use .jks and other things .. i googled too but tried many ways but i did not get answer yet .
Thank u TB0ne
i use apache tomcat and it's different with apache , in apache i can use crt,pub and prv pem but in apache tomcat i have to use .jks and other things .. i googled too but tried many ways but i did not get answer yet .
any suggestion
Spell out your words, please. And if you did try to look this up, you'd have found answers. Can you tell us which "many ways" you've tried, from what links?? Putting "how to add ssl certificate to tomcat" pulls up this, as the VERY FIRST HIT, from the Tomcat site, with examples. http://tomcat.apache.org/tomcat-3.3-...ssl-howto.html
Hello,
i followed this : (for info i bought ssl and i have two file .pfx and .cer)
keytool -importkeystore -srckeystore [xx.p12] -srcstoretype pkcs12 -srcalias [domainname] -destkeystore [domainname.jks] -destkeystore jks -deststorepass [xxx] -desalias [domainname]
this command add ssl to my apache tomcat but one my my webmail features (attachement) does not work .. before that i used self signed certificate with no problem.....that is my problem
i also create .pfx file and .cer then imported to jks ... failed
ERRORs :
11 Apr 2013 06:25:49[ERROR] test - SendMailService.log(38) javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Last edited by hesisaboury; 04-11-2013 at 05:27 AM.
Hello,
i followed this : (for info i bought ssl and i have two file .pfx and .cer)
keytool -importkeystore -srckeystore [xx.p12] -srcstoretype pkcs12 -srcalias [domainname] -destkeystore [domainname.jks] -destkeystore jks -deststorepass [xxx] -desalias [domainname]
this command add ssl to my apache tomcat but one my my webmail features (attachement) does not work .. before that i used self signed certificate with no problem.....that is my problem
...which is NOT what you posted originally. And where did you get that command, and WHICH webmail system are you using, on what version/distro of Linux???
Quote:
i also create .pfx file and .cer then imported to jks ... failed
Again, you need to provide details. HOW did you import them, with which command(s)/to where?
Quote:
ERRORs :
11 Apr 2013 06:25:49[ERROR] test - SendMailService.log(38) javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Thank u TB0ne
Finally solved
i create .p12 using http://dragotown.com/2005/08/creatin...using-openssl/
and add .crt to java cacerts (here was my problem)
keytool -import -alias domainname -file xx.crt -keystore "$JAVA_HOME/jre/lib/security/cacerts" -storepass xxx
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.