X509Certificate Error
-
Hi guys, i doing a project in which SSL is used. For SSL transmission X509Certificate is needed for Client and Server authendication.I am creating certificate using makecert tool makecert -r -n "CN = "SampleProject" -sv SDKSamplePrivDeveloper.pvk SampleProject.cer certificate is created sucessfully. But i have an exception in server
sslStream.AuthenticateAsServer(serverCertificate,
false, SslProtocols.Tls, true);[Exception]
An unhandled exception of type 'System.NotSupportedException' occurred in System.dllAdditional information: The server mode SSL must use a certificate with the associated private key.
I dont know what's wrong in certificate.I also provide the privateKey file in certificate Some one tell me the reason ... Thanks in advance
-
Hi guys, i doing a project in which SSL is used. For SSL transmission X509Certificate is needed for Client and Server authendication.I am creating certificate using makecert tool makecert -r -n "CN = "SampleProject" -sv SDKSamplePrivDeveloper.pvk SampleProject.cer certificate is created sucessfully. But i have an exception in server
sslStream.AuthenticateAsServer(serverCertificate,
false, SslProtocols.Tls, true);[Exception]
An unhandled exception of type 'System.NotSupportedException' occurred in System.dllAdditional information: The server mode SSL must use a certificate with the associated private key.
I dont know what's wrong in certificate.I also provide the privateKey file in certificate Some one tell me the reason ... Thanks in advance
try with others protocols
SslProtocols.Tls