Connecting to a SSL-enabled web service
To connect to an SSL web server, you need to add the server’s certificate to a local keystore.
Download the server’s .cer file, and create a local keystore for it using the following command:
keytool -importcert -file <path_to_.cer_file> -keystore <keystore_file.jks> -alias <keystore_alias> |
You will be asked to assign a password to the keystore.
At this point you can add the following entries to the isCOBOL configuration (or set them from the program using the SET ENVIRONMENT statement):
iscobol.net.ssl.trust_store=/path/to/keystore_file.jks iscobol.net.ssl.trust_store_password=password |