且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

SSL安装问题 - "键值不匹配" (但它们匹配吗?)

更新时间:2022-01-10 08:40:32

我也遇到了同样的错误。在我来说,我曾在验证链提供额外的CA证书。和而不是提供的证书,并在不同的文件的关键,我在一个.pem文件将它们结合在一起。

I also came across the same error. In my case I had to supply additional CA certificates in the verification chain. And instead of supplying the certificate and the key in separate files, I combined them in a .pem file.

然而,当你做到这一点,密钥和证书,加上中间一(S)的顺序很重要。正确的顺序:

However, when you do this, the order of the key and the certificate plus the intermediate one(s) is important. The correct order:

your private key
your certificate
(intermediate) CA certificate lowest in the hierarchy
other CA certificates higher in the hierarchy...
(intermediate) CA certificate highest in the hierarchy