Spring Boot-使用CA证书启用SSL(HTTPS) [英] Spring Boot - Enable SSL (HTTPS) with CA certificate

查看:297
本文介绍了Spring Boot-使用CA证书启用SSL(HTTPS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

也许我会在这里找到帮助.我想在Spring Boot应用程序上启用SSL.我有一个类似的配置:

Maybe I will find help here. I want to enable SSL on Spring Boot application. I have a configuration like:

服务器:端口:8999 ssl:已启用:true密钥库:classpath:keystore.jks密钥库密码:mypass密码:mypass

server: port: 8999 ssl: enabled: true key-store: classpath:keystore.jks key-store-password: mypass key-password: mypass

问题是我的密钥库.我已将* crt文件导入别名为"tomcat"的密钥库中:

The problem is my keystore. I've imported *crt file into keystore with alias 'tomcat':

keytool -importcert -file certificate.crt -keystore native.jks -alias tomcat

但是,我仍然无法正确访问我的rest api.它会在firefox中吐出错误:

However, I still can't properly access my rest api. It vomits with error in firefox:

SSL_ERROR_RX_RECORD_TOO_LONG

SSL_ERROR_RX_RECORD_TOO_LONG

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆