Cấu hình HTTPS trong tomcat

<Connector

port="443"     // 8443
protocol="HTTP/1.1"    //or protocol="org.apache.coyote.http11.Http11NioProtocol"
                                 
maxThreads="150"
                                     
scheme="https"
                                         
secure="true"
                                               
SSLEnabled="true"

keystoreFile="conf/keystore.key" 

keystorePass="123456"

clientAuth="false"


/>

Lưu ý cách tạo keystore. Nếu dùng cho web gọi service thì không cần mua SSL cert
Nếu dùng cho android và iOS thì phải mua SSL cert

Có thể cài bằng Let's crypt freeeeeeeeeeeeee

Comments

Popular posts from this blog

Fixing the DeepSpeed Import Error While Fine-Tuning the Qwen Model

Amazon Linux 2023 - User data configuration for launch templates to connect to the EKS cluster

How to create ISM policy and rotate logs in opensearch