wcf - Public certificate, private key asymmetricsecurity element -


my wsdl says asymmetric binding. initiator token , receipienct tokenhow can generate binary security token both client , server. can implement kind of security 1 private key. . here wsdl

            <sp:asymmetricbinding>     <wsp:policy>         <wsp:exactlyone><wsp:all><sp:initiatortoken><wsp:policy><wsp:exactlyone> <wsp:all><sp:x509token><wsp:policy> <wsp:exactlyone><wsp:all><sp:wssx509v3token11/></wsp:all>                     </wsp:exactlyone>                 </wsp:policy></sp:x509token></wsp:all>                 </wsp:exactlyone></wsp:policy></sp:initiatortoken>                 <sp:recipienttoken><wsp:policy><wsp:exactlyone><wsp:all><sp:x509token><wsp:policy><wsp:exactlyone><wsp:all>                 <sp:wssx509v3token11/>                 </wsp:all>                 </wsp:exactlyone>                 </wsp:policy>                 </sp:x509token>                 </wsp:all>             </wsp:exactlyone>                 </wsp:policy></sp:recipienttoken>                 <sp:algorithmsuite><wsp:policy><wsp:exactlyone><wsp:all><sp:tripledesrsa15/></wsp:all></wsp:exactlyone></wsp:policy>                 </sp:algorithmsuite>                 </wsp:all></wsp:exactlyone                 ></wsp:policy>             </sp:asymmetricbinding> 

in case make custom binding security element .

 `var sec = `(asymmetricsecuritybindingelement)securitybindingelement.createmutualcertificatebindingelement(messagesecurityversion.wssecurity10wstrust13wssecureconversation13wssecuritypolicy12basicsecurityprofile10);  

i able genrte username token none. security element

var security = transportsecuritybindingelement.createusernameovertransportbindingelement(); 

the sample soap request uses these terms describe binary security tokens

....(emedny signed user mls cert)..... .....( emedny mls web-service end-point public cert)......... ...nonce,. have private key former. server 1 need private key?.. public certificate. should security element. need 2 security elements. 1 binary security token , 1 usernametoken.?

thank u


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -