Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we use pfx certificate with password to make a request #17

Open
GauravKhanna58 opened this issue Sep 15, 2016 · 1 comment
Open

Comments

@GauravKhanna58
Copy link

GauravKhanna58 commented Sep 15, 2016

I've been trying to replicate WCF calls from ASP.NET to Nodejs with some configurations like below:

Web.config
< binding name="SamplePortSOAPBinding1" messageEncoding="Mtom" >
< security mode="TransportWithMessageCredential" >
< message clientCredentialType="Certificate" />
</ security >
</ binding >

As basicHttpBinding

C# Code
client.ClientCredentials.ClientCertificate.Certificate = new X509Certificate2(pfxFilePath, privateKeyPassword);

I do not find any place where i could put the password.

Can you guide me if it is possible to use password ?

Thanks,

@yaronn
Copy link
Owner

yaronn commented Sep 15, 2016

wcf.js uses ws.js which uses xml-crypto. see this thread in xml-crypto, either you can use it directly or do some monkey patch where applies: node-saml/xml-crypto#45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants