Tomcat配置SSL支持https并强制https访问

Tomcat配置SSL支持https并强制https访问_第1张图片
image.png

1、在阿里云上支持免费版的CA证书
https://common-buy.aliyun.com/?spm=5176.2020520163.cas.1.4272e7a9R0JOhX&commodityCode=cas#/buy

2、配置Tomcat
https://yundun.console.aliyun.com/?spm=5176.2020520163.1002.d10cas.4272e7a9ZkAjDt&p=cas#/cas/download/214242079920956

3、强制以https方式访问
在tomcat\conf\web.xml中的后面加上这样一段:


    
    CLIENT-CERT
    Client Cert Users-only Area


    
    
    SSL
    /*
    
    
    CONFIDENTIAL
    

你可能感兴趣的:(Tomcat配置SSL支持https并强制https访问)