c# - Digital Certificate Issue -
ok, let me explain situation. want simulate communication between client , server.
i created self-signed certificate called "testca" , installed in trusted certification root authorities section.
using self-signed certificate, created 2 other certificates, 1 name "servercert" , subject "cn=localhost:2001" , other name "clientcert" , subject name "cn=www.client.com" , installed both in personal section of certificates folder.
i deployed web service in iis https using certificate subject name ["cn=localhost:2001"]. web service deployed on [localhost] , port 2001. now, when try browse web service, internet explorer gives me error:
the security certificate presented website issued different website's address.
security certificate problems may indicate attempt fool or intercept data send server.
i don't know why giving me error since subject name of certificate ["cn=localhost:2001"] , web address of website being browsed [https://localhost:2001/].
how can solve problem ie not display error?
the port number not relevant when create certificate. please create certificate localhost subject name localhost
(not cn=localhost
, localhost
). able access localhost without warnings. also, www.client.com please create certificate subject name client.com
(not cn=www.client.com
)