I've been trying to sign XML through CU 6227 "Signed XML Mgt." with function SignXmlText,
Function requires "private key", and i don't know how would i get private key.
CU 3043 "DotNet_X509Certificate2" that has no external function to get private key, and dotnet variable DotNetX509Certificate2 has privatekey method, to return private key.
And function that initializes CU X509Certificate2 does not work because one of the parameters is Codeunit "DotNet_X509KeyStorageFlags" that has no external functions so it cant be initialized.
So my question is, how do i sign XML?
Hey,
I am like the same problem, did you get any solution?
Yes, through extension.
I've missed a few details:
So I have certificate (p12) that we get from Tax Authority for signing XML to send invoices to Tax Authority.
I was thinking about using Certificates to store certificate in database, so i can sign XML.
But problem is that i don't know how to get private key from certificate, so i can sign XML.
Do you want to do that in SaaS? I think it's quite hard, private keys or certificates are nornaly stored on the client machine.