HTTPS no tomcat, como fazer?
-
Preciso configurar o Tomcat para o acesso seguro via HTTPS. Tenho o Certificado (.crt) e a Chave (.key). O servidor aqui é windows server, tenho instalado o banco de dados Postgres e o tomcat. Preciso de ajuda.
-
no server.xml do tomcat voce pode colocar a tag de conexão assim e colocar os arquivos em uma pasta dentro da conf/SSL por exemplo:
<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="443"/>
<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" secure="true" SSLEnabled="true">
<SSLHostConfig>
<Certificate certificateKeyFile="conf/SSL/privkey.pem" certificateFile="conf/SSL/cert.pem" certificateChainFile="conf/SSL/fullchain.pem" type="RSA"/>
</SSLHostConfig>
</Connector>
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Cadastrar Login