Hi Ricardo,
I also have a need to sign an SHA1 hash with an RSA private key. I'm wondering if you had a chance to work on this since this old thread started back in 2015? If not, is there any chance you could add this function to CryptoAPI anytime soon?
Thanks in advance.
Charles
Hi Charles,
I did look into this but did not reach any conclusion of how I should present this to OutSystems Platform users.
Can you provide some more information on what you're trying to achieve? Who you're trying to integrate with?
Best regards,
Thanks for your reply. I was trying to connect to a Private Application in Xero. This requires an RSA-SHA1 signature to be sent as part of the Authorisation header of the request.
There is some general info here as a starting point: https://developer.xero.com/documentation/auth-and-limits/private-applications
I did manage to solve this in the meantime by creating a .Net extension. I'm considering publishing it to the Forge as a separate extension, and I'd be happy for you to incorporate it into the CryptoAPI too if there is a demand for it, but I can't help you with the Java version.
Charles Papp wrote:
I did manage to solve this in the meantime by creating a .Net extension. I'm considering publishing it to the Forge as a separate extension...
UPDATE: I published the function to generate the RSA-SHA1 signature from a Plain Text string with a Private Key (in XML format) as part of the CryptoSign component, in case anyone else finds a need for this.
Question
Can I use this forge component for a digital signature. The signature needs to be legally valid.
Hello Edward,
For determining whether a digital / electronic signature is legally valid, I recommend reaching out to a lawyer in the country you wish for the signature to be valid.
What this component allows is getting a digital signature over a piece of text. If you need to obtain that for a document, it currently does not provide an interface for it.
The term "digital signature" for legal purposes is also pretty ambiguous as it can mean "a cryptographically strong digital signature" (what this component could provide you with) or "a digital representation of a handwritten signature", which this component does not help you with.
Even if a digital signature in the cryptographic sense is what's required, there are also probably other legal, non-technical, requirements that are needed for the signature to be accepted. Again, I have ABSOLUTELY NO KNOWLEDGE OF THIS, and am not in any manner or form any kind of expert in legal manners, so you should reach out to a lawyer to understand exactly what you need to do.
Hi,
I'm hoping if someone can help me.
I'm getting an error when trying the component.
First: I tried using
RSA_NewKey
and it gives me the private key, when I use the function
RSA_GetPublicKey
to extract public key from the private one generated, I get empty text.
So I thought of sending the private key without these two texts "<RSAKeyValue><Modulus>" and "</RSAKeyValue>" and i'm getting wrong syntax, any lead how to do so?