c# - Certificate authentication with a self-signed certificate -


i have client application (windows service) sends request (webclient.uploadstring()) web service. i've created certificate through iis. attach webclient before sending request. however, following message:

the remote certificate invalid according validation procedure. 

i believe referring server having invalid certificate, unsure of best way make client trust server. eventaully, web service installed on number of servers windows service can't attach certificate single computer. ideas?

i don't know exact situation/setup, here general info on using self-signed certificates.

if want use self-signed certificate need add certificate server's trusted root certificate store.

basically server not trust certificate used sign certificate, certificate since self-signed.

as alternative, can create own root certificate , add server's trusted root, use sign additional client certificates. make easier because won't have install each client certificate on server, root 1 used signing.

of course, can buy certificate company (godaddy, verisign, etc). these signed certificate trusted.

also, there might ways bypass checking, don't want that.


Comments

Popular posts from this blog

sql - text truncated using perl DBI insert -

c++ - Is it possible to compile a VST on linux? -

php - Pass object by reference or value -