Setting up an SSL in a Spring Boot application without using a keytool and keystore

Опубликовано: 01 Март 2023
на канале: Seagull Software Development
925
26

You can set up an SSL in a Spring Boot applications without using a java keytool and keystore file (available since Spring Boot 2.7.0, in case of embedded servers) - just by placing PEM certificates.

And it doesn't matter what key pair you have - issued by Certificate Authorities (CA) or self-generated certificate. Just make PEM certificates available to your application, and https protocol will work as well as ownership verification.

Previously, it was possible to do it using a keystore files only. And many people think that this is still the only way.
That's why I decided to create this video. I hope it could be useful for somebody.

0:00 Introduction
0:56 What SSL is and why we may need it
05:11 Step 1 - Setting up a project
06:01 Spring Boot 2.7.0 SSL related release notes
07:06 Step 2 - Get and import certificates to the project
09:01 Step 3 - Set up application properties
10:30 Step 4 - Check how SSL works
11:53 Conclusion

If you want to generate a self-signed certificate, you can use any tool. Example - https://www.seag.pro/tools/ssl-generator
Pls make a comment about what topic you want me to cover in the next video.

Aleksei Chaika, seag.pro