Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » How can I use CORE/SSL to sign something or check signatures?
How can I use CORE/SSL to sign something or check signatures? [message #56385] Tue, 02 March 2021 19:56 Go to next message
Alboni is currently offline  Alboni
Messages: 214
Registered: January 2012
Location: Deventer, Netherlands
Experienced Member
I am implementing communication with a pay terminal. It uses a soap connection over the internet. I figured out how to do that, it is just a http put with a specific xml, but one of the fields in the xml requires signing the SHA256 of all the other fields with a private certificate and adding it as base64 to the xml.
I also need to verify all the info coming back by checking it with their public certificate.
I have all the certificates and the protocol description.

What I can't figure out is how to do the signing using upp or the actual checking of their signature.
Re: How can I use CORE/SSL to sign something or check signatures? [message #56387 is a reply to message #56385] Wed, 03 March 2021 09:58 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Alboni wrote on Tue, 02 March 2021 19:56
I am implementing communication with a pay terminal. It uses a soap connection over the internet. I figured out how to do that, it is just a http put with a specific xml, but one of the fields in the xml requires signing the SHA256 of all the other fields with a private certificate and adding it as base64 to the xml.
I also need to verify all the info coming back by checking it with their public certificate.
I have all the certificates and the protocol description.

What I can't figure out is how to do the signing using upp or the actual checking of their signature.


I am not 100% sure it applies in your code, but there is some signing code in PdfDraw:

String p7s = HexString(GetP7Signature(data, sign->cert, sign->pkey));


(please share your progress - can be useful for others...)
Previous Topic: UppHub / Plugin directory
Next Topic: UppHub - new package registration
Goto Forum:
  


Current Time: Thu Apr 18 19:30:14 CEST 2024

Total time taken to generate the page: 0.02675 seconds