lammertb / libhttp

Multi platform HTTP and HTTPS library
MIT License
956 stars 132 forks source link

Using Client Certificate performing a HTTP_POST in RPGLE #73

Open robschrama opened 3 years ago

robschrama commented 3 years ago

Hello,

To perform a HTTP_POST (LIBHTTP) in RPGLE using various certificates, two applications were created (RDW-IVIDIENSTEN_SERVER and RDW-IVIDIENSTEN) in the Digital Certificate Manager. The first one for trusting certificate authorities. The second one to assign a Client Certificate. Both DCM applications are used in the RPGLE application (see KA4050_782560_QSECOFR_SCHRAMAS4_1.PDF) by performing HTTP_INIT instructions.

Although the logging shows (see httpapi_debug.txt) the client certificate is sent along, the external Web service won't accept the HTTP_POST because the client certificate seems to be missing. As the provider confirms a handshake was done properly, certificates authorities seems to be trusted indeed.

Can anyone help me how to proceed ?

Regards, Rob Schrama Mitsubishi Motor Sales Nederland BV

httpapi_debug.txt KA4050_782560_QSECOFR_SCHRAMAS4_1.PDF

lammertb commented 3 years ago

The files you posted contain source code of a different HTTP library. You should check https://www.scottklement.com/httpapi/ instead. There are some support options on that page.

robschrama commented 3 years ago

Dear Lammert,

Thanks for quick reply. Following your advise a new version of LIBHTTP (1.45) was installed. However, this did not solve the problem as being described earlier by me. As the problem probably might be solved in a different way of using LIBHTTP in RPGLE or in a differente way of using the Digital Certificate Manager I’am not sure what’s the best way to get help on this issue. Maybe you can advise me.

Kind regards,

Rob Schrama Manager Information Services

Mitsubishi Motor Sales Nederland B.V. Postbus 9090 - 1180 MB AMSTELVEEN Bovenkerkerweg 6-8 - 1185 XE AMSTELVEEN Tel: +31 (0)20 4056 807 ­ Mob: +31 (0)6 2204 8218 E-mail: @.**@.> www.mitsubishi-motors.nlhttp://www.mitsubishi-motors.nl/ | Heeft u zich al ingeschreven? www.mijnmitsubishi.nlhttp://www.mijnmitsubishi.nl/ Bank of Tokyo-Mitsubishi nr. 63.56.14.359 | IBAN nr. NL46BOTK0635614359 BIC nr. BOTKNL2X | KvK nr. 34.099.499 | BTW nr. NL 80.55.89.144.B01

[Afbeelding met tekst, projector Automatisch gegenereerde beschrijving]

@.http://www.linkedin.com/company/mitsubishi-motor-sales-nederland-b-v- @. http://www.facebook.com/mitsubishinederland @. https://www.youtube.com/user/MitsubishiNederland/videos @. https://www.instagram.com/mitsubishi_nl @.*** http://www.twitter.com/Mitsubishi_NL

Van: Lammert Bies @.> Verzonden: dinsdag 28 september 2021 12:58 Aan: lammertb/libhttp @.> CC: Schrama Rob @.>; Author @.> Onderwerp: Re: [lammertb/libhttp] Using Client Certificate performing a HTTP_POST in RPGLE (#73)

The files you posted contain source code of a different HTTP library. You should check https://www.scottklement.com/httpapi/ instead. There are some support options on that page.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/lammertb/libhttp/issues/73#issuecomment-929080511, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AVWWGSHAKSN5WZKQQ6DI7UDUEGNUBANCNFSM5E5DIPPQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.