Skip to main content

安全な認証情報の設定 - Apple

Store your API key and client authentication password in a properties file. The SMCTL client will pull your API key and client certificate password from the properties file, if it is stored in .signingmanager\ssm-config.properties on your home directory.

構成ファイルのセットアップ

クライアントツールは、.signingmanager-seessm-config.properties から構成ファイルを検出します。APIキーとクライアント証明書パスワードのキーは、環境変数で使用されている名前と同じです。以下は構成ファイルの例です。

  1. Open an integrated development environment (IDE) or plain text editor.

  2. Copy and paste the following:

    SM_API_KEY=<API key>
    SM_CLIENT_CERT_PASSWORD=<Client certificate password>
  3. Provide your API key and client authentication password.

  4. Name the file: ssm-config.properties.

  5. Save the file in the following location: .signingmanager\ssm-config.properties.

注記

Once your API key and client authentication certificate password is securely stored in the properties file, use the following command to set the Host and client authentication certificate in SMCTL:

export SM_HOST=<host URL>
export SM_CLIENT_CERT_FILE=<P12 client authentication certificate file path>

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>