Skip to content

Custom Keypair

Yahyaoo edited this page Mar 30, 2019 · 1 revision

Introduce

If you need to generate your own secret key pair to encrypt the authorization process, please refer to the following tutorial.

warning

Please note that our own signed secret key pairs are not recognized by the public.

tutorial

  1. We used the keytool tool that comes with Java Developer's Kit to generate asymmetric secret key pairs.we need to install the Java Developer's Kit and start the command line.
  2. Get the relevant help using keytool-help.

pic

  1. Enter the following command to start creating a secret key pair demo.jks file

keytool -genkeypair -alias demo -keystore demo.jks

After the command is executed, the system will prompt for the first and last name, unit and organization, etc., which will be recorded in the certificate.Follow the instructions and you will see the resulting certificate file.

pic

The resulting secret key file is shown below:

pic

4.Copy the file to the spring-security-sso-auth-server/src/main/resources/

Clone this wiki locally