Skip to main content

安全な認証情報のセットアップ - Linux

Setting your DigiCert ONE host, API key, and client authentication certificate path and password as system variables, is a once off action. You will not be required to set your environment variables every time you open a command line session.

Set persistent environment variables

To set persistent variables:

  1. Launch the Terminal application.

  2. Open the file in an editor:

    nano ~/.profile
  3. Add any exports definitions you need:

    export SM_API_KEY= <API key>
    export SM_HOST=<host URL>
    export SM_CLIENT_CERT_FILE=<P12 client authentication certificate file path>
    export SM_CLIENT_CERT_PASSWORD=<P12 client authentication certificate password>
  4. Click CTRL+X to exit.

  5. Click Y to save.

  6. Click Enter to keep the same file name.

  7. Execute the new .profile by restarting Terminal or using:

     source ~/.profile

Remove persistent variables

Once your API key and client certificate password is securely stored in the properties file, ensure that your API key and client authentication certificate password is removed from persistent variables.

To remove persistent variables from .profile:

  1. Launch the Terminal application.

  2. Open the file in an editor:

    nano ~/.profile
  3. Remove the following from the .profile:

    export SM_API_KEY= <API key>
    export SM_CLIENT_CERT_PASSWORD=<P12 client authentication certificate password>
  4. Click CTRL+X to exit.

  5. Click Y to save.

  6. Click Enter to keep the same file name.

  7. Execute the new .profile by restarting Terminal or using:

     source ~/.profile

Proxy configuration

Configure the HTTPS_PROXY environment variable if the client tool need to communicate through a proxy.

Anonymous proxy

Use this command if your proxy does not require authentication:

export HTTPS_PROXY=https://<proxy_host>:<proxy_port>

Authenticated proxy

Use this command if your proxy requires authentication:

export HTTPS_PROXY=https://user:password@<proxy_host>:<proxy_port>