Need Private key in certificate file

Greetings,

Firstly, most of what I need is client driven...

I have a CA installed on a stand-alone Win Server 2008.  A few PC's will be connected to this  server (no domain) and "registered" with my software.    After this registration the PC will be disconnected and operate as a stand-alone unit (No network or internet access).  As part of this registration process, I need to request a certificate from the CA, an operator will then issue the certificate, and then I need a certificate file with both the private and public keys included.  This certificate will then be installed on the Client PC.  (This risk will be managed by the client)

I got the whole process to work in C#, except the resulting certificate does not have a private key.  I used CX509CertificateRequestPkcs10 to request the certificate from the CA.  From my research it seems I need a pkcs12 certificate file.  I am not sure if this is correct.

I need a certificate file which can be installed on the client PC with a private and public key.  The whole process needs to happen with C#, except for the issuing of the certificate on the CA.

Any help is much appreciated.

RoccatRazerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
Does your code approximate what is posted here
0
nociSoftware EngineerCommented:
PKCS#12 is a format that contains bot certificate + key. And optionaly has a password to protect it.
The file extension on windows for this type of file is a .pfx file.

You obviously have created a request and had it signed by a CA, no import the certificate to the tools you used to create the request. After that you should beable to export a certificate + key to a .pfx file.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
btanExec ConsultantCommented:
0
TolomirAdministratorCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.