- ! ! . : " ". , .
, :
1) . → → "cmd" Enter.
:
makecert.exe MakeCert -pe -ss My -sr LocalMachine -a sha1 -sky exchange -n CN = ClientCertificateName ( "ClientCertificateName" )
2) , !
3) 1) 2) , . TrustedPeople TrustedPeople .
→ "" → "" → "mmc" Enter
4) , "" → "/ " → "" () "" - "" "- > " "- > → →
. node () / node. , . , . . " /" node.
5) 4) - , -,
, () , , . web.config(app.config) .
<security mode="Message">
<message clientCredentialType="Certificate" />
</security>
node :
<behaviors >
<endpointBehaviors>
<behavior name="your_binding_behavior">
<clientCredentials>
<clientCertificate findValue="[The name of the client certificate here]"
storeLocation="LocalMachine"
storeName="My"
x509FindType="FindBySubjectName"/>
<serviceCertificate>
<defaultCertificate findValue="[The name of the server certificate here]"
storeLocation="LocalMachine"
storeName="TrustedPeople"
x509FindType="FindBySubjectName"/>
<authentication certificateValidationMode="PeerOrChainTrust"/>
</serviceCertificate>
</clientCredentials>
</behavior>
</endpointBehaviors>
</behaviors>
! ! . .