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

Number of certificates for UWP #57

Closed
raymondarvidsson opened this issue Oct 5, 2017 · 3 comments
Closed

Number of certificates for UWP #57

raymondarvidsson opened this issue Oct 5, 2017 · 3 comments

Comments

@raymondarvidsson
Copy link

Hi,

I´m working in a Univeral Windows project. When I check you code it seems like I only can have one certificate. The server I´m accessing needs One certificate, one private key and a ca certificate. Create an PFX-certificate and I´m done?

/Raymond

@JTrotta
Copy link
Contributor

JTrotta commented Oct 7, 2017

Hi,
the library accept a list of certificates, not just one. Look at MqttClientTlsOptions. The Certificates property is a list of bytes.
The server you're talking about really needs a CA certificate and PKey? Strange. You should just sends your client certificate.

JJ

@chkr1011
Copy link
Collaborator

chkr1011 commented Oct 7, 2017

Hi,
I am not an expert of certificate handling in .net but internally the certificate is passed into the following property of the framework: StreamSocket.Control.ClientCertificate

More info: https://docs.microsoft.com/en-us/uwp/api/windows.networking.sockets.streamsocketcontrol

I also found some more info about a similar problem (but c++) here: https://social.msdn.microsoft.com/Forums/vstudio/en-US/4264f6db-4c17-484f-befc-5eb8b49b98df/uwpc-streamsocket-client-certificate?forum=wpdevelop

Maybe this helps...

Best regards
Christian

@chkr1011
Copy link
Collaborator

@raymondarvidsson I assume you don't need more assistance. If I am wrong please reopen this ticket.

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

3 participants