留言板

Import certificate to tomcat

gabriel lopez,修改在6 年前。

Import certificate to tomcat

Junior Member 帖子: 28 加入日期: 17-9-27 最近的帖子
First of all thanks for read this post. My problem is that i have not idea how i can import my certificate to Tomcat to enable SSL. I have two files:
mycompany.crt and mycompany.ca-bundle
In portal-ext.properties i added the property company.security.auth.requires.https=true
Anyone can help me?In the wiki doesn´t appear anything... only appears how to import a autogenerated certificate....
Thanks for all emoticon
thumbnail
Olaf Kock,修改在6 年前。

RE: Import certificate to tomcat

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
gabriel lopez:
First of all thanks for read this post. My problem is that i have not idea how i can import my certificate to Tomcat to enable SSL.


https://tomcat.apache.org/tomcat-8.0-doc/ssl-howto.html
gabriel lopez,修改在6 年前。

RE: Import certificate to tomcat

Junior Member 帖子: 28 加入日期: 17-9-27 最近的帖子
Olaf Kock:
gabriel lopez:
First of all thanks for read this post. My problem is that i have not idea how i can import my certificate to Tomcat to enable SSL.


https://tomcat.apache.org/tomcat-8.0-doc/ssl-howto.html


i have liferay 6.2 ga6 with tomcat 7
thumbnail
Olaf Kock,修改在6 年前。

RE: Import certificate to tomcat

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
gabriel lopez:
Olaf Kock:
gabriel lopez:
First of all thanks for read this post. My problem is that i have not idea how i can import my certificate to Tomcat to enable SSL.


https://tomcat.apache.org/tomcat-8.0-doc/ssl-howto.html


i have liferay 6.2 ga6 with tomcat 7


Approximately twice a year I can't resist posting such a link: Here's where you find that information emoticon

And follow Arun Das' recommendation as well. I fully support his opinion ;)
gabriel lopez,修改在6 年前。

RE: Import certificate to tomcat

Junior Member 帖子: 28 加入日期: 17-9-27 最近的帖子
Olaf Kock:
gabriel lopez:
Olaf Kock:
gabriel lopez:
First of all thanks for read this post. My problem is that i have not idea how i can import my certificate to Tomcat to enable SSL.


https://tomcat.apache.org/tomcat-8.0-doc/ssl-howto.html


i have liferay 6.2 ga6 with tomcat 7


Approximately twice a year I can't resist posting such a link: Here's where you find that information emoticon

And follow Arun Das' recommendation as well. I fully support his opinion ;)


I do that... but when i access to my liferay server, appears in that mode(dont work with any web explorer):
thumbnail
Olaf Kock,修改在6 年前。

RE: Import certificate to tomcat

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
gabriel lopez:
I do that... but when i access to my liferay server, appears in that mode(dont work with any web explorer):


looks like you're using http to access an https port. Specify https explicitly and go to https://172.18.0.250:8443/

Next, you'll probably get an untrusted certificate, I'm assuming that you're using a self-signed one. But there's enough explanation on the internet about that. And when you access it with a browser, it will give you the option to nevertheless accept and trust. This will be harder if you access it with a different server - but first you'll need this to get up.
thumbnail
Arun Das,修改在6 年前。

RE: Import certificate to tomcat

Regular Member 帖子: 166 加入日期: 12-7-23 最近的帖子
Hi,
Apart from Olaf answer, I think its better to run a web server like Apache in front of Tomcat and configure SSL/TLS on Apache rather than on Tomcat.
Thanks to Olaf for his wonderful contribution on Securing Liferay

Arun