search

Home  >  Q&A  >  body text

java - How to start the SpringBoot project jar package and use https communication protocol?

I want to make a pure back-end java project, use the springboot framework, and then change the default http protocol to https protocol, according to the following tutorial
http://blog.csdn.net/enterys/...
After installation, it can be started directly locally and accessed by localhost using the https protocol. However, it will not work when deployed to a Linux environment.

伊谢尔伦伊谢尔伦2833 days ago1373

reply all(1)I'll reply

  • typecho

    typecho2017-06-12 09:27:44

    Configuring it directly in springboot is not as convenient as configuring it in nginx (certificate)

    Spring boot configure jks certificate

    server.port=8443
    #server.ssl.ciphers=yes
    server.ssl.enabled=true
    #server.ssl.key-alias=tomcat
    server.ssl.key-store=XXXXX.jks
    server.ssl.key-password=XXX.com
    server.ssl.key-store-type=JKS
    #server.ssl.protocol=TLSv1.1

    reply
    0
  • Cancelreply