Тёмный

Configure HTTPS for Spring Boot application on localhost with self-signed certificate 

Code Java
Подписаться 50 тыс.
Просмотров 35 тыс.
50% 1

Secure connection is required standard nowadays. In this video, I'd like to share with you about how to enable SSL for a Spring Boot application using self-signed certificate, for the purpose of development on local computer (localhost).
In details, you will learn:
- Generate SSL self-signed certificate using Java keytool
- Enable HTTPS for a Spring Boot application
- Install self-signed certificate on local computer so your browser will trust the certificate

Наука

Опубликовано:

 

21 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 70   
@NickBunton
@NickBunton 2 года назад
Exactly what I was looking for, thank you!
@CodeJava
@CodeJava 2 года назад
Glad I could help!
@baxter6504
@baxter6504 Год назад
At last! A RU-vid techie who is actually a domain expert. Thank you, sir. You’ve presented the most effective and informative tutorial on generating self-signed certs for Spring Boot applications. Keep up the good work!
@CodeJava
@CodeJava Год назад
Wow, thanks!
@MDAnashAnsari
@MDAnashAnsari 2 года назад
Crisp and Clear. Thanks for your efforts.....
@CodeJava
@CodeJava 2 года назад
You're most welcome
@TheSpeedX
@TheSpeedX 2 года назад
This is a video i was looking for.
@CodeJava
@CodeJava 2 года назад
Glad to hear that. Enjoy!
@hamidmohammadi8570
@hamidmohammadi8570 6 дней назад
Thank you for very useful video.some questions: 1. Is src/main/resources secure for storing key store.p12 file? 2. If using javaFX as frontend how can configure ssl ? 3. If your spring boot application run on server, how will be the keystore and configuration?
@user-ms5sd7bs6r
@user-ms5sd7bs6r 2 месяца назад
This video is very very useful, thank you!!!
@CodeJava
@CodeJava 2 месяца назад
Glad it was helpful!
@FullStackDevGreg
@FullStackDevGreg 8 месяцев назад
Straigth forward well done Sir
@CodeJava
@CodeJava 8 месяцев назад
glad this video is helpful.
@kraisrioaun8182
@kraisrioaun8182 4 месяца назад
Thank you for sharing. It was helpful to me.
@CodeJava
@CodeJava 4 месяца назад
I'm so glad! Thanks for watching :)
@bohdankalika
@bohdankalika Год назад
Hi, can I use the same configuration/implementation for the reactive programming in WebFlux? Or for this reason the SSL implementation is different?
@CodeJava
@CodeJava Год назад
I think you can because SSL is independent of application layer.
@saadmalikofficial
@saadmalikofficial 2 года назад
Whats the version of SSL? Is there any ways I can check. I suppose latest versions of SSL are called TLS ? Please advise
@CodeJava
@CodeJava 2 года назад
yes, it is TLS technically.
@KCTsangKen
@KCTsangKen Год назад
A very good video, it is very helpful! Just one question: I see that you were using SSL and I want to know if TLS is configured the same way, thank you!
@CodeJava
@CodeJava Год назад
I don't know about TLS.
@talentinfo2795
@talentinfo2795 2 года назад
Hi , 443 port is in use and when i am configuring 8443 or any other port than i am getting "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." I have set that as server.port in application.properties file. can you plz help me 8443 is not in use but still getting the above error
@CodeJava
@CodeJava 2 года назад
I don't know why. Why not turn off the app that is using port 443?
@thetravelinggene
@thetravelinggene Год назад
I have a feeling that I am in the same class that is using this. In your Console view, you need to click [Terminate] and then the [Remove All Terminated Launches], this will shut it down to where you can run it again.
@hendisantika
@hendisantika 2 года назад
I already followed the steps. The certificate is there. But, chrome said it is still invalid. What should I do?
@CodeJava
@CodeJava 2 года назад
you need to add your self-signed certificate to the Trusted Root Certification Authorities. See: www.codejava.net/frameworks/spring-boot/configure-https-with-self-signed-certificate
@marypaul9627
@marypaul9627 Год назад
hi have followed same steps but when i copy to my project its always saying that it could not load classpath
@CodeJava
@CodeJava Год назад
without further information (e.g. exception details), i don't know why.
@francksgenlecroyant
@francksgenlecroyant 2 года назад
I am always learning new stuffs from Nam! But is it possible to do this when the front end is built with ReactJS or once the front end is built with ReactJS I must do this with a JS backend framework ?
@CodeJava
@CodeJava 2 года назад
I think it (SSL) doesn't relate to any frameworks. It's in the network protocol layer.
@francksgenlecroyant
@francksgenlecroyant 2 года назад
@@CodeJava Thanks bro!
@geosystems2106
@geosystems2106 Год назад
This was very windows specific. Second part would be very different on linux, rite ? :)
@CodeJava
@CodeJava Год назад
Right. you must find the equivalent commands on linux.
@Misskieutra
@Misskieutra Год назад
Cam on anh :)
@Mukesh1987ism
@Mukesh1987ism 2 года назад
After configuring SSL, the REST API call is stop working, can you please help me on this?
@CodeJava
@CodeJava 2 года назад
I have no idea why. Maybe you forgot to update http scheme to https somewhere?
@robertorojaswilson2960
@robertorojaswilson2960 Год назад
x2
@gautamithakur4132
@gautamithakur4132 2 года назад
I am getting parseAlgParameter failed ..so what is the solution
@CodeJava
@CodeJava 2 года назад
sorry I don't know
@joelchabzola8870
@joelchabzola8870 2 года назад
Thanks for sharing
@CodeJava
@CodeJava 2 года назад
My pleasure
@abhaymishra8112
@abhaymishra8112 Год назад
That's a good video...
@CodeJava
@CodeJava Год назад
Glad you enjoyed it
@durmaztekeli
@durmaztekeli Год назад
Illegal option: -validity keytool -genkeypair [OPTION]... what can i do for that?
@CodeJava
@CodeJava Год назад
I think something wrong with your command. Check this article for the correct one: www.codejava.net/frameworks/spring-boot/configure-https-with-self-signed-certificate
@durmaztekeli
@durmaztekeli Год назад
@@CodeJava i copied command in this article. after when i removed the validity that it works for me
@brazo98
@brazo98 2 года назад
Nam you are realy the spring boot dude! Thx a lot dor this movie! Nice day!
@CodeJava
@CodeJava 2 года назад
Welcome. Enjoy it!
@saftaleonard7588
@saftaleonard7588 2 года назад
You shoud try his udemy courses. They're great. I'm halfway trough one of them and it worths every cent.
@CodeJava
@CodeJava 2 года назад
@@saftaleonard7588 thanks a lot for your recommendation.
@brazo98
@brazo98 2 года назад
No, Nam is the best teacher ever! I line Nammmmm🖖🏻🖖🏻🖖🏻💪💪💪😻😻😻King of Spring Boot and lot of other Java things! 🖖🏻🖖🏻🖖🏻🖖🏻
@CodeJava
@CodeJava 2 года назад
@@brazo98 thanks a lot for your encouragement. I'm happy.
@rith-sz5js
@rith-sz5js 2 года назад
Hello brother if our spring boot is https so when we deploy it still https or http please reply me thank u 🥰
@CodeJava
@CodeJava 2 года назад
it depends configuration on the server. Meaning that when deploying you need to configure HTTPS on server.
@rith-sz5js
@rith-sz5js 2 года назад
@@CodeJava thanks
@thonghoangpham6085
@thonghoangpham6085 11 месяцев назад
please guide to configure it in intellij, i am learning your spring boot course on udemy
@CodeJava
@CodeJava 11 месяцев назад
oh, I think it doesn't depend on IDE.
@thonghoangpham6085
@thonghoangpham6085 11 месяцев назад
@@CodeJava I wrote the code in the same modular format as your course on udemy, when I watched this video and followed it, it gave me an error that this configuration file could not be found even though I put it in the resources folder
@TranDucViet-iu9to
@TranDucViet-iu9to Год назад
i want to remove self-signed certificate, how do i ?
@CodeJava
@CodeJava Год назад
just delete the SSL configuration in the application.properties file.
@108vicky
@108vicky 7 месяцев назад
nice :)
@CodeJava
@CodeJava 7 месяцев назад
Thanks!
@antonytran229
@antonytran229 Год назад
Anh có thể cài tiếng Việt được k :))
@durmaztekeli
@durmaztekeli Год назад
Could you take a video for Linux?
@CodeJava
@CodeJava Год назад
Yes, i will do some videos on a VPS with CentOS
@rameshbari1984
@rameshbari1984 2 года назад
Where is source code??
@CodeJava
@CodeJava 2 года назад
You can find config code example in the written article here www.codejava.net/frameworks/spring-boot/configure-https-with-self-signed-certificate For the code of the project, check in this article: www.codejava.net/frameworks/spring-boot/social-login-with-facebook-example
@loinguyenuc6730
@loinguyenuc6730 2 года назад
Spring Boot Websocket Chat Pls
@CodeJava
@CodeJava 2 года назад
I will do in future. Thanks for your great suggestion :)
@IvanRandomDude
@IvanRandomDude Год назад
Basic chat is relatively simple to do in spring boot (send and receive messages) and there are already tutorials online. But if you want advanced features like presence tracker, user typing indicator, message seen indicator, delete messages for me/for everyone, support for photos and videos etc then it is great project to showcase your abilities but it would not be possible to do in one video.
Далее
Spring Boot with HTTPS Example | Tech Primers
14:50
Просмотров 83 тыс.
Камень, ножницы, нейронка
00:33
Просмотров 64 тыс.
Quick and Easy Local SSL Certificates for Your Homelab!
12:08
#5 What is Spring Boot?
12:12
Просмотров 39 тыс.
SSL, TLS, HTTPS Explained
5:54
Просмотров 710 тыс.
HTTP to HTTPS using SSL and SpringBoot | Java Techie
13:04
iPhone 15 Pro в реальной жизни
24:07
Просмотров 411 тыс.
Choose a phone for your mom
0:20
Просмотров 7 млн
iPhone 15 Pro в реальной жизни
24:07
Просмотров 411 тыс.