Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionprogram crashing.... Pin
VCProgrammer4-Feb-09 17:52
VCProgrammer4-Feb-09 17:52 
AnswerRe: program crashing.... Pin
VC++Maniac4-Feb-09 18:15
VC++Maniac4-Feb-09 18:15 
AnswerRe: program crashing.... Pin
_AnsHUMAN_ 4-Feb-09 18:28
_AnsHUMAN_ 4-Feb-09 18:28 
QuestionRibbon app crash on XP. Works on vista. [modified] Pin
VC++Maniac4-Feb-09 17:27
VC++Maniac4-Feb-09 17:27 
AnswerRe: Ribbon app crash on XP. Works on vista. Pin
VC++Maniac6-Feb-09 0:42
VC++Maniac6-Feb-09 0:42 
QuestionHow to play an Animation and make video render before logon through credential provider ?(Vista) [modified] Pin
wyc_xiaoben4-Feb-09 15:06
wyc_xiaoben4-Feb-09 15:06 
AnswerRe: How to play an Animation and make video render before logon through credential provider ?(Vista) Pin
Wes Aday4-Feb-09 16:00
professionalWes Aday4-Feb-09 16:00 
Questionwinhttp ssl using client certificate P12 Pin
Codey20984-Feb-09 11:17
Codey20984-Feb-09 11:17 
Hi,
I've been searching far and wide on how to setup a client certficate so that my application can access a https server using winhttp.


Ultimate goal
Application uses the https server for storage and updating of personal statistics information. This data can be accessed from any machine with this application, using it's internal memory certficate, eg, the certficate shouldn't be stored in a windows certficate store, user identification is done on protocols internal to the script running on the server address.


Problem
The documentation on how to setup and use a client certifcate (p12) with password for a certificate store, is very poor to non-existent.
If I try to load a p12 certificate through:

m_hCertStore = CertOpenStore(
CERT_STORE_PROV_FILENAME,
X509_ASN_ENCODING | PKCS_7_ASN_ENCODING,
NULL,
0,
L"my-client.p12"
);
The function fails, and as far as I can see, this is the only way to load a certificate for my application to use internally.
As mentioned above the ultimate goal is to have the certificate entirely in memory, but in the meantime it's acceptable to just load it from a file.


Solution?
Can anyone give some pointers on how to use a p12 file or other client certificate setup with a certifcate store?
When i test this same certifcate through IE it asks for the password contained in the file. So I'd imagine I'd have to supply this password through an API to load it into my certficate store, but there's no information how to work with this.

Any advice welcome, I'm completely stumped!!!
AnswerRe: winhttp ssl using client certificate P12 Pin
andrew7webb1-Jan-11 11:36
andrew7webb1-Jan-11 11:36 
QuestionMSI, ShellNew and Vista Ultimate.. [modified] Pin
Member 38520244-Feb-09 10:54
Member 38520244-Feb-09 10:54 
Questionvector(wstring) to System::String ? Pin
Thilek4-Feb-09 7:02
Thilek4-Feb-09 7:02 
AnswerRe: vector(wstring) to System::String ? Pin
CPallini4-Feb-09 7:57
mveCPallini4-Feb-09 7:57 
GeneralRe: vector(wstring) to System::String ? Pin
Thilek4-Feb-09 19:53
Thilek4-Feb-09 19:53 
QuestionRe: vector(wstring) to System::String ? Pin
David Crow5-Feb-09 3:39
David Crow5-Feb-09 3:39 
QuestionOLE DB network suggestions Pin
robocodeboy4-Feb-09 6:27
robocodeboy4-Feb-09 6:27 
QuestionDBCS issue Pin
David Crow4-Feb-09 5:36
David Crow4-Feb-09 5:36 
AnswerRe: DBCS issue Pin
Graham Bradshaw4-Feb-09 6:22
Graham Bradshaw4-Feb-09 6:22 
GeneralRe: DBCS issue Pin
David Crow4-Feb-09 6:47
David Crow4-Feb-09 6:47 
GeneralRe: DBCS issue Pin
Graham Bradshaw4-Feb-09 6:50
Graham Bradshaw4-Feb-09 6:50 
GeneralRe: DBCS issue Pin
David Crow4-Feb-09 6:54
David Crow4-Feb-09 6:54 
GeneralRe: DBCS issue Pin
Graham Bradshaw4-Feb-09 6:58
Graham Bradshaw4-Feb-09 6:58 
QuestionRe: DBCS issue Pin
David Crow4-Feb-09 7:10
David Crow4-Feb-09 7:10 
AnswerRe: DBCS issue Pin
Graham Bradshaw4-Feb-09 7:29
Graham Bradshaw4-Feb-09 7:29 
AnswerRe: DBCS issue - calculating the number of bytes Pin
daniel_zy6-Feb-09 7:20
daniel_zy6-Feb-09 7:20 
QuestionNeed help on how to create Group Box dynamically Pin
John5024-Feb-09 4:48
John5024-Feb-09 4:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.