Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Use preexisting cert? #29
Hello. I'd like to utilize this sample with an existing cert my local cert store. How can I export it to the format expected by the sample:
I have the public and private key for the cert in question. How can I use what I have in my local certificate store to generate the above?
That said to answer your question: if you know the thumbprint or subject of your certificate, you can get it with PowerShell.
For instance, assuming that the certificate is the current user's personal store, and the thumbprint is 0380BBAF358659AC0EF1BA472606CBD816BBC30E, you'll get the certificate by running in PowerShell
then the rest of the instructions to compute the KeyCredential is the same.