Home:ALL Converter>Validate certificate TLS/SSL Server

Validate certificate TLS/SSL Server

Ask Time:2014-04-26T07:59:41         Author:Zeusoflightning125

Json Formatter

I have been attempting to create an SSL server that loads a certificate from a .crt. I have tried both X509Certificate.CreateFromCertFile(@".\Secure\Certificate\" + CertName + ".crt"); and the cert.import, and neither works. On both, I get an issue saying "The server mode SSL must use a certificate with the associated private key". And the key is there! My directory:

Secure/
    Certificate/
        ZeusHTTP.crt
        ZeusHTTP.csr
        ZeusHTTP.key
    Plugins/
        ...

The certs are created with OpenSSL.

Author:Zeusoflightning125,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/23304920/validate-certificate-tls-ssl-server
spender :

A simple read of the docs tells us that you should be using a pkcs7 file that usually has file suffix p7b. You'll need to either convert your OpenSSL cert to this format, or find a utility that can generate one from scratch.",
2014-04-26T00:06:14
yy