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
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
Post a Comment