current position:Home>Detailed process of spring boot free HTTPS project configuration!

Detailed process of spring boot free HTTPS project configuration!

2022-04-29 20:20:56Migrant worker brother

Click below “Java Programming duck ” Follow and mark the stars

More exciting First time direct

source :blog.csdn.net/qq_20051535?type=blog


Prepare to launch the interview project , Because it's an applet that requires you to https, Record the complete process and the pits that have been passed

First step apply SSL certificate

Here's the free one  https://freessl.cn/ , You can do it according to your own needs .

I chose it Offline generation , The domain name needs to be resolved and verified , Alibaba cloud users can select one click to generate , But you need to provide authorization code , Asia integrity is not recommended and does not support applets !! Only computers are supported !! Don't apply wrong

PS: You need to install a client software he requires , According to the prompt, the domain name resolution will automatically succeed .

If you keep verifying that the load doesn't respond, use 【 One click application 】 Then choose 【 I'm not an Alibaba cloud user 】, It will change from web page verification and parsing to software verification , But seconds passed )

5814a4231accade30f844eaf75441eef.png

The second step Export certificate

The export method is different for each platform , Let me take mine as an example

1. Export the certificate through this website software

7b623857e0f2096f3213bda5cbf64dbc.png

4b7ff58d37e0338711aaffd406c795b2.png

7b0ac4a13c7e46fa88f96ee1265a1fee.png

He will automatically download one zip Compressed package :

open iis Of ( No tomcat Folder , Currently, Alibaba cloud, etc SSL Application channels are only for pfx certificate , Use jks The certificate may be changed after expiration, which is troublesome )

0c3e761ac776124ff6048dd64deca24f.png

f48ce4da3d88ad3f6a84d41473e9594a.png

214192a876c3c3083f0b43889a1fabf6.png

The third step Configuration code

server:
  port: 443
  ssl:
    key-store: classpath:aaaaa.pfx
    key-store-password: yourpassword
    keyStoreType: PKCS12

The code is Export certificate Step five The random password , It doesn't matter what you write on the correspondence. There's no requirement !

The file name is also corresponding. There is no requirement !

END

 After reading this article, there are gains ? Please forward to share with more people 
 Focus on 「Java Programming duck 」, promote Java Skill 
 Focus on Java Programming duck WeChat official account , The background to reply : Yard farm gift bag   A copy of the latest technical data can be obtained . cover Java  Frame learning 、 Architect learning, etc !


 If the article helps , Looking at , Forward! .
 Thank you for your support  (*^__^*)

copyright notice
author[Migrant worker brother],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/119/202204291614142288.html

Random recommended