Properties file for Windows
You can store your API key and client authentication password in a properties file. SMCTL client will retrieve these credentials from the properties file, provided it is stored in <Home Dir>\.signingmanager\ssm-config.properties
within your home directory.
Create properties file
To create the properties file, follow these steps:
Open an integrated development environment (IDE) or plain text editor.
Copy and paste the following lines into the editor:
SM_API_KEY=<API key> SM_CLIENT_CERT_PASSWORD=<Client certificate password>
Replace
<API key>
and<Client certificate password>
with your actual credentials.Save the file with the name ssm-config.properties.
Store the file in the following location:
<Home Dir>\.signingmanager\ssm-config.properties
.
Set Host and Client authentication certificate path
Once your API key and client authentication certificate password is securely stored in Windows Credential Manager, use the following session-based command to set the path to your Host and client authentication certificate in SMCTL:
set SM_HOST=<host URL> set SM_CLIENT_CERT_FILE=<P12 client authentication certificate file path>
Proxy configuration
If your client tool needs to communicate through a proxy, you can configure the HTTPS_PROXY
environment variable accordingly. Choose the appropriate command based on your proxy type:
Anonymous proxy
Use this command if your proxy does not require authentication:
set HTTPS_PROXY=https://<proxy_host>:<proxy_port>
Authenticated proxy
Use this command if your proxy requires authentication:
set HTTPS_PROXY=https://user:password@<proxy_host>:<proxy_port>