Java Keytool Tutorial: How to generate a Self-Signed certificate using the Java Keytool

Поділитися
Вставка
  • Опубліковано 25 січ 2025

КОМЕНТАРІ • 72

  • @DarrensTechTutorials
    @DarrensTechTutorials  4 роки тому

    Hi there,
    Please support me on patreon if you found this video helpful! www.patreon.com/darrenstechtutorials

  • @TylerMatthewHarris
    @TylerMatthewHarris 2 роки тому +2

    People like you are what makes the internet awesome, thank you

  • @s.mohammedjunaith6152
    @s.mohammedjunaith6152 7 місяців тому +1

    Greate video. It solved my problem.

  • @SlimHandle
    @SlimHandle 8 місяців тому

    That is impressive. I learned about SSL recently so to learn the keystore bit will help complete me

  • @Peter-qq9qp
    @Peter-qq9qp 3 роки тому

    Hi there ...I rarely comment but this tutorial really helped me out. Thanks man!

    • @DarrensTechTutorials
      @DarrensTechTutorials  3 роки тому +1

      No worries at all Peter glad it was helpful.

    • @hamzameliki7576
      @hamzameliki7576 3 роки тому

      can you please tell us how import that key in connection java to mysql remotely ?

  • @zebakhanumbadagi8846
    @zebakhanumbadagi8846 4 роки тому +1

    Hi,
    I am getting filenotfound exception c:local.keystore access is denied erroe

  • @TCSkateboard
    @TCSkateboard 5 років тому

    Can I do it with Open JDK Instead Java SE? (It seems that needs a license...)

  • @Akash939
    @Akash939 6 років тому +2

    In ssl (non java) certificates you will get private key with separate certificate. I originally thought with the genkey command you used we get private key and we need to run certreq to get the certificate.
    also if we try to curl the url in Linux you get error. I am not sure if adding the certificate to truststore will resolve that issue.

  • @bismillahithouse
    @bismillahithouse 5 років тому +3

    java.io.FileNotFoundException: c:\local.keystore (Access is denied)

    • @anakinsteegs
      @anakinsteegs 4 роки тому +1

      I had the same issue ....discovered I was not running command prompt in Administrator mode...changed it..and it worked

    • @LeoVOXA
      @LeoVOXA 4 роки тому

      Checking...
      Where the link goes is not the same on the site and the tutorial, so I did both...
      Japp it worked, but I can't install the apk on android.

  • @rohitmania1
    @rohitmania1 4 роки тому

    Is this just a keypair stored in a jks keystore or a propert self-signed certificate?

  • @badda_boom8017
    @badda_boom8017 3 роки тому

    Is it possible to automate this and pass it values to enter?

  • @akhilsuryaa4216
    @akhilsuryaa4216 5 років тому +1

    hey how can I set validity on that certificate and how to configure it with my .jar file

  • @SalvadorChaosOfficial
    @SalvadorChaosOfficial 4 роки тому

    I'm a beginner, so sorry if I come off as naive:
    but do I do this (create a new Keystore) for every app?
    or is there a different command to add a new app Key to this existing Keystore?
    or am I completely misunderstanding what a Keystore is and what it's used for? Lol

  • @srividhyalakshminarayanan6738
    @srividhyalakshminarayanan6738 5 років тому

    Is this a private-public key pair generated? I see privatekey generated...Is it possible to generate a keypair using keytool?

  • @snoggletog9954
    @snoggletog9954 4 роки тому

    thank u so much it worked like a charm

  • @ShivamYadav-je9eb
    @ShivamYadav-je9eb 4 роки тому +2

    Thank you sir! I think I had hours of UA-cam videos but can't find a solution for generating SHA1 fingerprint. I am so thankful to you for helping me with this problem. But, the problem I faced was my CMD, I think we need to run CMD as an administrator!

  • @seanpurcell8502
    @seanpurcell8502 6 років тому +1

    My command prompt says that keytool isn't recognized as an internal or external command

    • @DarrensTechTutorials
      @DarrensTechTutorials  6 років тому

      Hey, you need to add the keytool to your path, let me know if you have any issues doing so :)

  • @SammarpanDasguptaOfficial
    @SammarpanDasguptaOfficial 3 роки тому

    Thanks a lot sit...That helps me a lot

  • @Jhojz
    @Jhojz Рік тому

    Comprehensive tut.

  • @DigsWigs2022
    @DigsWigs2022 2 роки тому

    Thanks a lot dude!!

  • @elijahekerendu1634
    @elijahekerendu1634 6 років тому +2

    Hello Darren, I love ur video. can you also do this for windows 7. the process is quite different

    • @DarrensTechTutorials
      @DarrensTechTutorials  6 років тому

      Hey, thanks for the positive feedback, sure will look into doing one for Windows 7 - don't forget the subscribe if the videos are useful :)

  • @alfonsoesteves5090
    @alfonsoesteves5090 5 років тому

    I was getting really confused about encrypting things with CA's private key, and the browser decryting it with public key.
    Then I read that keys are interchangeble, if one encrypts, the other can decrypt, regardless of which one is the private/public. Is this correct?
    Given a key pair A B.
    A message encripted with A can only be decryped with B. I believe that is true, but:
    If a message is able to be decryted with B, does it necessarily mean it was encryped with A.
    I hope so, otherwise when the CA sing the certificates won't be prove of anything...

  • @neway1995
    @neway1995 4 роки тому +1

    This step :c:\>keytool -v -list -keystore local.keystore
    I am failed
    It has my local.keystore in my c drive.

  • @luisfelipe6714
    @luisfelipe6714 3 роки тому

    Thank´s so much man, saved me

  • @amanagrawal5997
    @amanagrawal5997 5 років тому +1

    Do this require cmd to be open in admin mode as i am getting an error, "keystore location not found "

  • @PaganAbroad
    @PaganAbroad 5 років тому +4

    save yourself 2 mins 25 secs by fast fwding to that time index...

  • @hamzameliki7576
    @hamzameliki7576 3 роки тому

    thank you too much for helping us for free , can you please tell us how import that key in connection java to mysql ?

  • @AhmedKhaled-he9mf
    @AhmedKhaled-he9mf 2 роки тому

    Thanks very much for your efforts,
    Please how fix below error ?
    Invalidated: [Session-3, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256]

  • @DarrensTechTutorials
    @DarrensTechTutorials  4 роки тому

    Hi there,
    If you like this video feel free to subscribe to my channel my clicking here:
    goo.gl/ajiwW2

  • @hireshpatil3286
    @hireshpatil3286 3 роки тому

    Hi Darren can we use this certificate for Java based Application?
    if yes how?

    • @DarrensTechTutorials
      @DarrensTechTutorials  3 роки тому

      Hi Hiresh, I used this cert on tomcat for testing. You can use a self signed cert for testing really. normally you would purchase a signed certificate for production.

  • @duonglamsu3594
    @duonglamsu3594 3 роки тому

    OMG you saved me !!

  • @willienilliie
    @willienilliie 3 роки тому

    thank you!

    • @DarrensTechTutorials
      @DarrensTechTutorials  3 роки тому

      You're welcome and glad it was helpful
      Feel free to checkout my patreon here to help me keep making these videos :)
      www.patreon.com/join/darrenstechtutorials

  • @theonlyrareone7330
    @theonlyrareone7330 6 років тому

    I created it so what now? how to I use it?

    • @DarrensTechTutorials
      @DarrensTechTutorials  6 років тому

      You can use it so secure things like Tomcat: ua-cam.com/video/ke1SgU_HY80/v-deo.html

  • @nomad1219
    @nomad1219 4 роки тому

    Thanx. Great!

  • @Ahsan_JS
    @Ahsan_JS 5 років тому +1

    thanks a lot

  • @jonthf.5803
    @jonthf.5803 4 роки тому

    thankss!!!!!!!!!!

  • @rafael5617765
    @rafael5617765 4 роки тому

    thank you

  • @safrinabohel7324
    @safrinabohel7324 4 роки тому

    thanks!!

  • @yashzode1034
    @yashzode1034 4 роки тому +1

    Hey hi,
    can you share your mail id,
    Need a bit help for installation and configuration in windows 10

  • @theonlyrareone7330
    @theonlyrareone7330 6 років тому

    mines says keytool error: java.iofilenotfoundexception C:\local keystore

    • @DarrensTechTutorials
      @DarrensTechTutorials  6 років тому

      Hey, it's saying file not found, is the keystore in that location? Can you copy the path to you Keystore and paste it here, so i can see?

    • @DarrensTechTutorials
      @DarrensTechTutorials  6 років тому

      Hey just aswell, did you put the path in quotes when you were entering it?

    • @theonlyrareone7330
      @theonlyrareone7330 6 років тому

      oh I see it! Thanks a bunch! so can I know use this to sign my apk?

    • @DarrensTechTutorials
      @DarrensTechTutorials  6 років тому

      ​@@theonlyrareone7330 I mostly use it for securing tomcat, Jboss etc but yeah it should work for that.

    • @theonlyrareone7330
      @theonlyrareone7330 6 років тому

      @@DarrensTechTutorials Darren do you know how I would make the keystore valid for 25 years? as it currently is only a couple months

  • @yashzode1034
    @yashzode1034 6 років тому

    Amazing

  • @miftahurridho7194
    @miftahurridho7194 4 роки тому

    What is password ?