Generating Java Keystore

Use

Note:

This procedure is required if you select Keystore Type > Java Keystore File in a restful virtual unit installation for either Restful Interfaces, see Installing Restful Virtual Unit, or Universal Queue, see Installing Universal Queue.

Additionally you need the following variable value:

  • [password]: Certificate Key File Password for NIO Connector

Note:

If you select Keystore Type > Windows Personal Certificate Store in restful virtual unit installation, the Windows keystore is used, and you only need to place the certificate to the personal folder of the HAC user account and give its name during restful virtual unit installation.

Procedure

  1. Open a Command Prompt window: Start > Run and then run the command cmd.

  2. Run mmc.

  3. Choose File > Add/Remove Snap-in…

    The Add or Remove Snap-in window opens.

  4. Choose Certificates and click Add.

    A wizard opens.

  5. Select Computer account and click Next.

  6. Select Local computer: (the computer this console is running on) and click Finish.

  7. Click OK.

  8. Right-click the certificate and choose All Tasks > Export.

    The Certificate Export Wizard window opens.

  9. Click Next.

  10. Select Yes, export the private key and click Next.

  11. Select Personal Information Exchange - PKCS #12 (.PFX) and Include all certificates in the certification path if possible and then click Next.

  12. Enter the password [password]and click Next.

  13. Choose the place where you save the file and enter the file name cert.pfx and click Next.

  14. Click Finish.

  15. Go to Command Prompt to generate the file and run the following command:

    keytool -importkeystore -srckeystore cert.pfx -srcstoretype pkcs12 -destkeystore keystore -deststoretype JKS

  16. To change the alias created by the keytool, do the following:

    1. Get the current alias by running the following command:

      keytool -list -keystore keystore

    2. Copy the alias from the list and place it in the command below.

    3. To replace the alias, run the following command:

      keytool -changealias -alias "[copy the alias here]" -destalias "HTTPSSERVER" -keystore keystore

After installing the virtual unit, place keystore file into the folder RestfulInterfaces\cert, which is under Restful Interfaces virtual unit.