Generating a Self-Signed Certificate for the GUI
To establish secure communications between the GUI and the Sterling External Authentication Server, you must create a key certificate on the computer where the GUI is running.
To create a self-signed key certificate at the GUI:
- On the computer where the GUI is running, type the following
command and press Enter:
keytool -genkey -alias alias_name -keyalg alg_type -keysize keysize -validity validity_in_days -keystore keystore_path -storepass passwordThe follow example illustrates how to create a key certificate:
$ keytool -genkey -alias SEASGUIkeycert -keyalg RSA -keysize 1024 -validity 360 -keystore c:\keystore\mykeystore -storepass passwordThe following examples illustrate creating a key certificate using the -dname option to control the attributes used to define subject distinguished name:
$ keytool -genkey -alias SEASGUIkeycert -keyalg RSA -keysize 1024 -validity 360 -keystore c:\keystore\mykeystore -storepass password -dname “CN=SEASGUI, DC=companyname, DC=com”$ keytool -genkey -alias SEASGUIkeycert -keyalg RSA -keysize 1024 -validity 360 -keystore c:\keystore\mykeystore -storepass password -dname “C=US, O=companyname, CN=SEASGUI” - If you do not use the -dname option to define the CN attribute,
provide the following:
- First and last name
Note: Information you provided in the First and last name field is used to create the CN attribute in the subject DN.- Organizational unit
- Organization
- City or locality
- State or Province (use UPPER CASE characters)
- Two-letter country code (use UPPER CASE characters)
- Verify the information you provided and press Enter.
- At the prompt to provide a password, do not provide a password.
Press Enter. CAUTION:The key certificate and keystore passwords must be the same for Sterling External Authentication Server to function properly.
- Do one of the following:
- If you are using CA-signed certificates, complete the procedure Creating a PKCS#10 Certificate Signing Request for the GUI to Submit to a CA.
- If you are using a self-signed certificate, export a copy of the file. Refer to Exporting a Self-Signed Certificate for the GUI.