How do I log in with a .cer certificate for ftps

0 votes
asked Nov 11, 2016 by asg (120 points)

I currently use a pfx certificate with a password, but would like to change to using a .cer with no password. Do you have sample code for connecting and logging in with this type of Certificate?

Thanks, Bob Feller

1 Answer

0 votes
answered Nov 11, 2016 by Lukas Matyska (52,890 points)

It is not possible. You have to use .pfx because it contains the Private Key necessary for client authentication. The .cer has not Private Key included which means there is no possibility to authenticate client.

What you can only do is to use .pfx without password. But .pfx is necessary.

commented Nov 11, 2016 by asg (120 points)
Thanks for your quick answer. That is what I suspected.
...