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

Поделиться
HTML-код
  • Опубликовано: 18 ноя 2024

Комментарии • 70

  • @baxter6504
    @baxter6504 2 года назад

    At last! A RUclips 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!

  • @TheSpeedX
    @TheSpeedX 3 года назад +5

    This is a video i was looking for.

    • @CodeJava
      @CodeJava  3 года назад

      Glad to hear that. Enjoy!

  • @NickBunton
    @NickBunton 2 года назад +3

    Exactly what I was looking for, thank you!

    • @CodeJava
      @CodeJava  2 года назад

      Glad I could help!

  • @FullStackDevGreg
    @FullStackDevGreg Год назад +1

    Straigth forward well done Sir

    • @CodeJava
      @CodeJava  Год назад

      glad this video is helpful.

  • @MDAnashAnsari
    @MDAnashAnsari 3 года назад +1

    Crisp and Clear. Thanks for your efforts.....

    • @CodeJava
      @CodeJava  3 года назад

      You're most welcome

  • @hamidmohammadi8570
    @hamidmohammadi8570 4 месяца назад

    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?

  • @PauloCabelloAtxa
    @PauloCabelloAtxa 6 месяцев назад

    This video is very very useful, thank you!!!

    • @CodeJava
      @CodeJava  6 месяцев назад

      Glad it was helpful!

  • @kraisrioaun8182
    @kraisrioaun8182 8 месяцев назад

    Thank you for sharing. It was helpful to me.

    • @CodeJava
      @CodeJava  8 месяцев назад

      I'm so glad! Thanks for watching :)

  • @talentinfo2795
    @talentinfo2795 3 года назад +1

    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  3 года назад

      I don't know why. Why not turn off the app that is using port 443?

    • @thetravelinggene
      @thetravelinggene 2 года назад

      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 года назад +1

    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

  • @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 года назад +1

      yes, it is TLS technically.

  • @Mukesh1987ism
    @Mukesh1987ism 2 года назад +1

    After configuring SSL, the REST API call is stop working, can you please help me on this?

  • @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.

  • @brazo98
    @brazo98 3 года назад

    Nam you are realy the spring boot dude! Thx a lot dor this movie! Nice day!

    • @CodeJava
      @CodeJava  3 года назад +1

      Welcome. Enjoy it!

    • @saftaleonard7588
      @saftaleonard7588 3 года назад +1

      You shoud try his udemy courses. They're great. I'm halfway trough one of them and it worths every cent.

    • @CodeJava
      @CodeJava  3 года назад

      @@saftaleonard7588 thanks a lot for your recommendation.

    • @brazo98
      @brazo98 3 года назад +1

      No, Nam is the best teacher ever! I line Nammmmm🖖🏻🖖🏻🖖🏻💪💪💪😻😻😻King of Spring Boot and lot of other Java things! 🖖🏻🖖🏻🖖🏻🖖🏻

    • @CodeJava
      @CodeJava  3 года назад +1

      @@brazo98 thanks a lot for your encouragement. I'm happy.

  • @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.

  • @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.

  • @francksgenlecroyant
    @francksgenlecroyant 3 года назад +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  3 года назад +2

      I think it (SSL) doesn't relate to any frameworks. It's in the network protocol layer.

    • @francksgenlecroyant
      @francksgenlecroyant 3 года назад +1

      @@CodeJava Thanks bro!

  • @Misskieutra
    @Misskieutra Год назад +1

    Cam on anh :)

  • @abhaymishra8112
    @abhaymishra8112 Год назад

    That's a good video...

  • @durmaztekeli
    @durmaztekeli 2 года назад

    Illegal option: -validity
    keytool -genkeypair [OPTION]...
    what can i do for that?

    • @CodeJava
      @CodeJava  2 года назад

      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 2 года назад

      @@CodeJava i copied command in this article.
      after when i removed the validity that it works for me

  • @joelchabzola8870
    @joelchabzola8870 2 года назад

    Thanks for sharing

  • @thonghoangpham6085
    @thonghoangpham6085 Год назад

    please guide to configure it in intellij, i am learning your spring boot course on udemy

    • @CodeJava
      @CodeJava  Год назад

      oh, I think it doesn't depend on IDE.

    • @thonghoangpham6085
      @thonghoangpham6085 Год назад

      @@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

  • @durmaztekeli
    @durmaztekeli 2 года назад

    Could you take a video for Linux?

    • @CodeJava
      @CodeJava  2 года назад

      Yes, i will do some videos on a VPS with CentOS

  • @antonytran229
    @antonytran229 Год назад +1

    Anh có thể cài tiếng Việt được k :))

  • @gautamithakur4132
    @gautamithakur4132 2 года назад

    I am getting parseAlgParameter failed ..so what is the solution

    • @CodeJava
      @CodeJava  2 года назад

      sorry I don't know

  • @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

  • @108vicky
    @108vicky 11 месяцев назад

    nice :)

  • @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.

  • @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 3 года назад

    Spring Boot Websocket Chat Pls

    • @CodeJava
      @CodeJava  3 года назад

      I will do in future. Thanks for your great suggestion :)

    • @IvanRandomDude
      @IvanRandomDude 2 года назад

      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.