Foren

Import certificate to tomcat

gabriel lopez, geändert vor 6 Jahren.

Import certificate to tomcat

Junior Member Beiträge: 28 Beitrittsdatum: 27.09.17 Neueste Beiträge
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, geändert vor 6 Jahren.

RE: Import certificate to tomcat

Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
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, geändert vor 6 Jahren.

RE: Import certificate to tomcat

Junior Member Beiträge: 28 Beitrittsdatum: 27.09.17 Neueste Beiträge
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, geändert vor 6 Jahren.

RE: Import certificate to tomcat

Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
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, geändert vor 6 Jahren.

RE: Import certificate to tomcat

Junior Member Beiträge: 28 Beitrittsdatum: 27.09.17 Neueste Beiträge
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):

Anhänge:

thumbnail
Olaf Kock, geändert vor 6 Jahren.

RE: Import certificate to tomcat

Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
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, geändert vor 6 Jahren.

RE: Import certificate to tomcat

Regular Member Beiträge: 166 Beitrittsdatum: 23.07.12 Neueste Beiträge
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