我想在springboot app中使用ssl。我使用这个tutorial但是当我尝试启动时,我的应用程序会给我这个错误:
***************************
APPLICATION FAILED TO START
***************************
Description:
The Tomcat connector configured to listen on port 8443 failed to start. The port may already be in use or the connector may be misconfigured.
Action:
Verify the connector's configuration, identify and stop any process that's listening on port 8443, or configure this application to listen on another port.
我的 application.properties
#ssl
server.port=8443
server.ssl.key-alias=alias
server.ssl.key-password=password
server.ssl.key-store=classpath:keystore.jks
server.ssl.key-store-provider=SUN
server.ssl.key-store-type=JKS
或者你知道另一种做SSL信任的方法吗?
答案 0 :(得分:0)
使用在管理模式下运行的命令行生成密钥。