signxml icon indicating copy to clipboard operation
signxml copied to clipboard

Validate x.509 cert value is a valid certificate before inlining contents into signature

Open msetina opened this issue 11 months ago • 3 comments

If you set cert parameter of sign call to empty string, signature will produce an empty ds:X509Data/ in KeyInfo and even ignore public key data. Removing cert parameter form sign call will produce problem #250

msetina avatar Mar 21 '24 10:03 msetina

Can you provide a specific example of what application you need to interoperate with that requires the X.509 certificate to be absent?

kislyuk avatar Mar 23 '24 21:03 kislyuk

My code was faulty and produced empty string for ca chain. The cert parameter was no cecked, so the undesired result. Will provide the example....

msetina avatar Mar 23 '24 22:03 msetina

I see, thanks. Yes, we need some validation here to ensure the certificate string to be inserted is an actual X.509 certificate.

kislyuk avatar Mar 24 '24 01:03 kislyuk