Click here to Skip to main content

C / C++ / MFC

 
AnswerRe: software update solution PinprofessionalRichard Andrew x6425-Sep-13 19:21 
GeneralRe: software update solution Pinmemberkoll060425-Sep-13 21:32 
AnswerRe: software update solution PinprofessionalRichard Andrew x6426-Sep-13 3:39 
GeneralRe: software update solution Pinmemberkoll060426-Sep-13 15:48 
AnswerRe: software update solution PinprofessionalRichard Andrew x6426-Sep-13 18:34 
AnswerRe: software update solution PinprofessionalRichard Andrew x6426-Sep-13 12:09 
GeneralRe: software update solution Pinmemberkoll060426-Sep-13 16:06 
Questionwhy gSOAP only require the root CA when accessing HTTPS? Pinmemberszh12125-Sep-13 18:10 
I have a self-signed CA Root. An intermediate certificate was signed by this CA Root, and my server is the 3rd level which is signed by the intermediate certificate. What i have is like:
 
CA Root --> Intermediate Cert --> Server Cert
 
What i'm using is the function soap_ssl_client_context() to connect to the server and calling its web services. The function soap_ssl_client_context() requires one certificate file with PEM format as the cert file of the server.
 
The fact i'm facing is that, if i only put the CA Root certificate only (without the intermediate cert and server cert) in the PEM file, all the connection and web service calling are succeed. Is that reasonable? I mean it can pass the verification if only CA Root was provided. Is there anyway to make it verify the full certificate chain instead just the CA root?
 
The code looks like bellow:
try 
{
    soap_ssl_init();
    soap_init(soap);
 
    if (soap_ssl_client_context(
        soap, 
        SOAP_SSL_DEFAULT,
        NULL,   /* keyfile: required only when client must authenticate to server (see SSL docs on how to obtain this file) */ 
        NULL,    /* password to read the key file (not used with GNUTLS) */ 
        "C:\\certfiles.pem", /* cacert file to store trusted certificates (needed to verify server) */              
        NULL,  /* capath to directory with trusted certificates */ 
        NULL     /* if randfile!=NULL: use a file with random data to seed randomness */ 
        ))
    { 
        isSucceed = false;
    }
 
} catch (...) {
    isSucceed = false;
}
 
Any comment will be appreciated. Thanks.
AnswerRe: why gSOAP only require the root CA when accessing HTTPS? PinmvpRichard MacCutchan25-Sep-13 22:39 
Questionhow to make this working: srand(time(NULL)); Pinmembermrby12325-Sep-13 13:58 
AnswerRe: how to make this working: srand(time(NULL)); PinprofessionalRichard Andrew x6425-Sep-13 14:12 
QuestionCRegKey read from registry? Pinmemberbosfan25-Sep-13 7:19 
AnswerRe: CRegKey read from registry? PinprofessionalRichard Andrew x6425-Sep-13 8:47 
GeneralRe: CRegKey read from registry? Pinmemberbosfan25-Sep-13 22:46 
AnswerRe: CRegKey read from registry? PinmvpRichard MacCutchan25-Sep-13 22:37 
GeneralRe: CRegKey read from registry? Pinmemberbosfan25-Sep-13 22:45 
GeneralRe: CRegKey read from registry? PinmvpRichard MacCutchan25-Sep-13 23:03 
GeneralRe: CRegKey read from registry? Pinmemberbosfan25-Sep-13 23:32 
GeneralRe: CRegKey read from registry? PinmvpRichard MacCutchan25-Sep-13 23:45 
GeneralRe: CRegKey read from registry? Pinmemberbosfan26-Sep-13 21:42 
GeneralRe: CRegKey read from registry? PinmvpRichard MacCutchan26-Sep-13 22:30 
QuestionSocket Communication - Server with 2 different clients Pinmembermanoharbalu25-Sep-13 1:47 
AnswerRe: Socket Communication - Server with 2 different clients PinmvpRichard MacCutchan25-Sep-13 2:01 
GeneralRe: Socket Communication - Server with 2 different clients Pinmembermanoharbalu25-Sep-13 3:24 
GeneralRe: Socket Communication - Server with 2 different clients PinmvpRichard MacCutchan25-Sep-13 3:59 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.150327.1 | Last Updated 27 Mar 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid