UniFi Controller AC控制器安装SSL证书

腾讯云

  1. qcloud.com申请免费SSL证书.
  2. 修改文件名
    1_root_bundle.crt >> unifi.chain.crt
    2_xxx.crt >> unifi.crt
    3_xxx.key >> unifi.key

  3. 上传证书文件至 /var/lib/unifi

  4. cd /var/lib/unifi

  5. openssl pkcs12 -export -in unifi.crt -inkey unifi.key -certfile unifi.chain.crt -out unifi.p12 -name unifi -password pass:aircontrolenterprise

  6. keytool -importkeystore -srckeystore unifi.p12 -srcstoretype PKCS12 -srcstorepass aircontrolenterprise -destkeystore /usr/lib/unifi/data/keystore -storepass aircontrolenterprise

  7. 重启unifi>> service unifi restart

阿里云


1. aliyun申请免费SSL证书

  1. 转换证书格式
    openssl x509 -in xxx.pem -out unifi.crt
    openssl x509 -in chain.pem -out unifi.chain.crt
    mv xxx.key unifi.key
  2. 上传证书文件至 /var/lib/unifi

  3. cd /var/lib/unifi

  4. openssl pkcs12 -export -in unifi.crt -inkey unifi.key -certfile unifi.chain.crt -out unifi.p12 -name unifi -password pass:aircontrolenterprise

  5. keytool -importkeystore -srckeystore unifi.p12 -srcstoretype PKCS12 -srcstorepass aircontrolenterprise -destkeystore /usr/lib/unifi/data/keystore -storepass aircontrolenterprise

  6. 重启unifi>> service unifi restart

发表评论

电子邮件地址不会被公开。