Military Cac For Mac, \no Client Certificate Presented\'''''''

Active4 years, 1 month ago

Last Revision: 04 June 2011 Presented by Michael J. Danberry This presentation was initially created by SGT Jorgenson and has been revised.

I have a C application that uses LibCurl (LibCurl is a C API that makes an HTTP connection to a web server). Using LibCurl I need to download a file from an HTTPS server that requires a client certificate.

So far our technical solution works great.

No client certificate presented army

My problem is that the client certificate that we need to use resides on a DoD CAC card. I need to be able to pull the client certificate off of the DOD CAC card (from within my C app) and either write it to a file or just reference the file on the CAC. This written or referenced file will then be specified as my client certificate in my HTTPS connection.

I do not know how to locate or reference the client certificate off the DoD CAC Card. Any help is very much appreciated. Thanks.

No Client Certificate Presented Ako

skaffman

No Client Certificate Presented Military

352k90 gold badges746 silver badges733 bronze badges
kmehtakmehta
1,3974 gold badges22 silver badges33 bronze badges

2 Answers

When activeClient publishes the CAC card certs to windows it should export the certs to the store. You may need to automate the exporting of the certificate from your local cert store to a file like .pfx or .p7b format. Maybe .cer, I don't know if that's possible. It'll need to be pwd protected.

No Client Certificate Presented Windows 10

I don't think you can do it directly from the CAC card without an intermediary middle layer (like the cert store).

Apollo SOFTWAREApollo SOFTWARE
10.3k4 gold badges39 silver badges59 bronze badges

This is the method for C# it may help with C I'm really not familiar with C code.

No Client Certificate Presented Cac Card

The code to get and export the cert is

The export method has various types to export to I am not sure if one will be the format you are referring to. This is something you will need to play with. I am not even sure you will be able to use those libraries in C but just in case you could I posted them.

Ako Problem No Client Certificate Presented

o0knight0oo0knight0o

No Client Certificate Presented Ako Army

Not the answer you're looking for? Browse other questions tagged httpsclient-certificatescac or ask your own question.