IBM Support

Generate a self-signed certificate using the Keytool

White Papers


Abstract

Generating a self-signed certificate using the Keytool

Content

1) view the cert from keystore

keytool -list -v -keystore /home/test1/MFTWebServices/mftws/BOOT-INF/classes/ssl-server.jks

2) Creation of certificate and it will create the certificate inside keystore

keytool -genkey -alias <server-alias-name> -keyalg RSA -keypass <password> -storepass <keystore password> -keystore <keystore>.jks

example-

keytool -genkey -alias server-alias -keyalg RSA -keypass qwerty1 -storepass qwerty1 -keystore /home/test1/MFTWebServices/mftws/BOOT-INF/classes/ssl-server.jks

When you press Enter, keytool prompts you to enter the server name, organizational unit, organization, locality, state, and country code.

4) Edit application.properties file and change the value of server.ssl.key-alias property with Certificate Label to be used by Connect: Direct Web Services.

5) stop and start web service.

[{"Type":"MASTER","Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7KR7","label":"IBM Sterling Connect:Direct Web Services"},"ARM Category":[{"code":"a8m0z000000cwUsAAI","label":"CD WEBSERVICES"}],"Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"All Versions"}]

Document Information

More support for:
IBM Sterling Connect:Direct Web Services

Component:
CD WEBSERVICES

Software version:
All Versions

Operating system(s):
Linux, Windows

Document number:
6537898

Modified date:
03 January 2022

UID

ibm16537898

Manage My Notification Subscriptions