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

Java

Video is ready, Click Here to View ×


The Java keytool allows your to generate certs that you can use with applications such as Tomcat. The below tutorial will show you how to generate a self signed cert that you can use with your applications.

It starts from the very beginning and shows you how to install Java, set up a key store and generate your jks cert.

This guide will first show you how to download Java JDK.

You will then add java to your path.

Next you will use the Java keytool to create a Java keystore

You will then…

8 thoughts on “Java Keytool Tutorial: How to generate a Self-Signed certificate using the Java Keytool

  1. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *