简体   繁体   English

EppLib.net-使用哪个SSL证书

[英]EppLib.net - Which SSL Certificate to use

When using EppLib.net (and as per the Nominet instructions - http://registrars.nominet.uk/namespace/uk/registration-and-domain-management/registrar-systems/epp/testbed ) 当使用EppLib.net(和具体根据Nominet的指令- http://registrars.nominet.uk/namespace/uk/registration-and-domain-management/registrar-systems/epp/testbed

In order to verify the identity of the secure server you will need the 'Verisign Class 3 Public Primary Certification Authority' root certificate available free from www.verisign.com (the certificate is also distributed with most web browsers). 为了验证安全服务器的身份,您将需要可从www.verisign.com免费获得的“ Verisign 3类公共主证书颁发机构”根证书(该证书也随大多数Web浏览器一起分发)。

I am supplying the Verisign Class 3 PPCA Certs in .crt format (I can't export as a pfx) within the code (and have tried every cert installed on the server). 我在代码内提供了.crt格式的Verisign 3类PPCA证书(我无法导出为pfx)(并且尝试了服务器上安装的每个证书)。

However each one fails with the error (when trying to negotiate the connection): 但是,每个失败都会出现错误(尝试协商连接时):

An existing connection was forcibly closed by the remote host.

I've confirmed that I can connect from the server to Nominet by running cURL 我已经确认可以通过运行cURL从服务器连接到Nominet

curl -v https://testbed-epp.nominet.org.uk:700

and that responds as I would expect - or at least without an error! 并且响应如我所料-至少没有错误!

I have also tried to use the same cert that curl appears to be using without success. 我还尝试过使用curl似乎未成功使用的证书。

Can anyone help with pointing me in the right direction with the SSL that I should be using or how to get hold of the correct certificate? 任何人都可以帮助我以正确的方向向我指出我应该使用的SSL或如何获得正确的证书吗?

thanks in advance 提前致谢

For anyone having a similar issue, it wasn't a question of which SSL certificate to use, but to ensure the correct protocol was being used. 对于有类似问题的任何人,不是要使用哪个SSL证书的问题,而是要确保使用正确的协议。 Incidentally, I got it working initially using the curl-ca-bundle.crt provided with cURL. 顺便说一句,我最初使用的是cURL提供的curl-ca-bundle.crt。

This certificate, in combination with a change to the target .net framework for the EppLib.net project resolved my issue. 该证书与对EppLib.net项目的目标.net框架的更改相结合,解决了我的问题。

On cloning from Github the target was .net 4.0 and Nominet needs at least TLS1.1, which wasn't available in v4. 从Github克隆时,目标是.net 4.0,而Nominet至少需要TLS1.1,v4中不提供此功能。

Therefore I also updated the target to 4.5.1 for the EppLib.net project and changed the SslProtocol from 因此,我还将EppLib.net项目的目标更新为4.5.1,并将SslProtocol从

SslProtocol.Tls to SslProtocol.Tls

SslProtocol.Tls12

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM