[JAVA] How to create an oleore certificate (SSL certificate, self-signed certificate)

Overview

The method of creating an oleore certificate (self-signed certificate) is described below.

procedure

1. 1. Create an "Oreore certificate" with Keytool.

1. Install the JDK

Download and install the JDK from the Oracle site. Here, "jdk1.8.0_161" is installed under Program File.

2. Create a folder to store the keystore file.

Here, it is set as "C: \ tmp".

3. Confirm that "keytool.exe" is stored under the installed JDK folder.

image.png

4. Launch the command prompt and move to the above folder.

Transition command


cd C:\Program Files\Java\jdk1.8.0_161\bin

image.png

5. Execute the keystore file creation command.

command


keytool -genkey -alias tomcat -keyalg RSA -keystore C:\tmp\.keystore

You will be asked to enter a password, but enter an appropriate one. image.png

6. Check the result of creating the keystore file.

Check that the ".keystore" file exists under the "C: \ tmp" folder. image.png

Recommended Posts

How to create an oleore certificate (SSL certificate, self-signed certificate)
How to create an application
How to create docker-compose
Rails6.0 ~ How to create an eco-friendly development environment
How to make an oleore generator using swagger codegen
How to create a method
How to create an application server on an EC2 instance on AWS
[Java] How to create a folder
How to insert an external library
How to create a web server on an EC2 instance on AWS
How to crop an image with libGDX
How to blur an image (super easy)
[Amateur remarks] I tried to automate SSL possible (self-signed certificate) with Docker-Compose
How to publish an application on Heroku
How to create a Maven repository for 2020
How to define an inner class bean
[Swift5] How to create a splash screen
How to write an RSpec controller test
How to create an Excel form using a template file with Spring MVC
How to create a database for H2 Database anywhere
Summary of how to create JSF self-made tags
[Rails] How to create a graph using lazy_high_charts
How to write an if statement to improve readability-java
How to use an array for HashMap keys
How to create pagination for a "kaminari" array
How to create a class that inherits class information
How to create a theme in Liferay 7 / DXP
How to create search conditions involving multiple models
[1st] How to create a Spring-MVC framework project
How to easily create a pull-down in Rails
[Rails] How to create a Twitter share button
How to create hierarchical category data using ancestry
How to solve an Expression Problem in Java
How to create member variables with JPA Model
[Rails] How to build an environment with Docker
How to build an executable jar in Maven
How to make an crazy Android music player
How to deploy
How to make an image partially transparent in Processing
How to install Ruby on an EC2 instance on AWS
How to create a Java environment in just 3 seconds
[Rails] How to create a signed URL for CloudFront
How to use an array for a TreeMap key
How to push an app developed with Rails to Github
How to make an almost static page with rails
How to write to apply gem Pagy (pagination) to an array
How to create a Spring Boot project in IntelliJ
How to install the root certificate of Centos7 (Cybertrust)
[Spring Boot] How to create a project (for beginners)
PKIX path building failed: Add SSL certificate to java
How to create a data URI (base64) in Java
Mandels to create an image of the Mandelbrot set
How to output standard from an array with forEach
[For those who create portfolios] How to use font-awesome-rails
Docker php-apache SSL support with self-signed certificate (my memo)
How to create and execute method, Proc, Method class objects
How to write an external reference key in FactoryBot
(Ruby on Rails6) How to create models and tables
[Apple Subscription Offer] How to create a promotional offer signature
[Rails] How to display an image in the view