如何在嵌入式偏航上配置possitiveSSL?

时间:2018-01-21 17:29:28

标签: erlang ssl-certificate yaws

我从ComodoSSL购买了possitiveSSL证书

这些是我收到的文件

Root CA Certificate - AddTrustExternalCARoot.crt
Intermediate CA Certificate - COMODORSAAddTrustCA.crt
Intermediate CA Certificate - COMODORSADomainValidationSecureServerCA.crt
Your PositiveSSL Certificate - domain_com.crt

如何使用以下嵌入式偏航配置替换这些文件?

{ssl,[{keyfile, "/home/user/Develop/yaws-2.0.2/etc/yaws/yaws-key.pem"},
          {certfile, "/home/user/Develop/yaws-2.0.2/etc/yaws/yaws-cert.pem"},
          {depth,0},{dhfile,"/home/yser/Develop/yaws-2.0.2/etc/yaws/dhparams.pem"}]},

1 个答案:

答案 0 :(得分:0)

我已将以下文件合并到一个filename.crt中解决了这个问题:

Root CA Certificate - AddTrustExternalCARoot.crt
Intermediate CA Certificate - COMODORSAAddTrustCA.crt
Intermediate CA Certificate - COMODORSADomainValidationSecureServerCA.crt
Your PositiveSSL Certificate - domain_com.crt

然后我将用于请求ssl证书的密钥签名添加到file.key文件中。

所以结果是这样的:

{port, 443}
{ssl,[{keyfile, "/home/file.key"},
          {certfile, "/home/filename.crt"},
          {depth,0}]}