# 使用现有密钥库进行配置

## 关于本任务

如果您已有包含有效 SSL 证书的密钥库。例如，与 Talend Administration Center 配合使用的密钥库。您可以按如下方式配置 start\_qtcmt.bat 或 start\_qtcmt.sh 文件：

## 程序

1. 根据您的操作系统，打开 start\_qtcmt.bat 或 start\_qtcmt.sh 文件。
2. 复制并粘贴以下内容。
   * 对于 Windows:
     ```
     java ^
      -jar %qtcmt% ^
      --spring.ssl.bundle.jks.qtcmt-ssl-bundle.key.alias= <certificate alias in the keystore> ^
      --spring.ssl.bundle.jks.qtcmt-ssl-bundle.key.password= <certificate password> ^
      --spring.ssl.bundle.jks.qtcmt-ssl-bundle.keystore.location= <keystore file name> ^
      --spring.ssl.bundle.jks.qtcmt-ssl-bundle.keystore.password= <keystore password> ^
      --spring.ssl.bundle.jks.qtcmt-ssl-bundle.keystore.type= <keystore type: PKCS12 or jks> ^
      --server.port= <https port>
     ```
   * 对于 Linux：
     ```
     java \
      -jar $qtcmt \
      --spring.ssl.bundle.jks.qtcmt-ssl-bundle.key.alias= <certificate alias in the keystore> \
      --spring.ssl.bundle.jks.qtcmt-ssl-bundle.key.password= <certificate password> \
      --spring.ssl.bundle.jks.qtcmt-ssl-bundle.keystore.location= <keystore file name> \
      --spring.ssl.bundle.jks.qtcmt-ssl-bundle.keystore.password= <keystore password> \
      --spring.ssl.bundle.jks.qtcmt-ssl-bundle.keystore.type= <keystore type: PKCS12 or jks> \
      --server.port= <https port>
     ```