chrome浏览器测试https接口
1.背景
托拉拽大屏开发平台(简称平台)只能调https接口,目前又没有https接口,开发后如何测试?
2.配置
# springboot接口配置https
keytool -genkey -alias tomcat -keyalg RSA -keystore ./server.keystore
# 将生成的server.keystore拷到resources下
# 修改配置application.yaml
server:
port: 8088
ssl:
enabled: true
key-store: classpath:server.keystore
key-store-password: 123456
key-store-type: JKS
# chrome修改配置,平台调用接口,报错NET::ERR_CERT_AUTHORITY_INVALID
Chrome地址栏输入:chrome://flags/#allow-insecure-localhost
Allow invalid certificates for resources loaded from localhost. enabled
3. 引用
Chrome访问https页面显示ERR_CERT_INVALID,且无法跳过继续访问
Spring Boot配置SSL实现https请求

浙公网安备 33010602011771号