Hi everyone, Has anyone implemented XML file sign...
# suitescript
c
Hi everyone, Has anyone implemented XML file signing in SuiteScript? If so, what library have you used? I've been looking for a library that doesn't depend on a web browser or Node dependency, but I haven't found one yet. Also, do you know of a library similar to @fidm/x509 that can get the publicKey of a certificate and can be used in SuiteScript? Thanks in advantage.
b
you generally dont have a choice when looking for libraries that dont have a node or browser dependency
javascript is primarily broswer or node (or at least node compatible)
you generally have to polyfill in globals used by libraries
c
I will check them, Thank you so much for your help.
@battk do you know a way to verify the signing of the XML using a provided (external) certificate? I know that the certificate.verifyXmlSignature can be used, but using certificates that belongs to the Company. The Digital Certificate requires that the Certificate to be uploaded contains the Private Key and the Certificate in the same file, due to I have an external certificate (provided by another company that performs the signing of the XML) I can not upload the certificate to NetSuite because I will don't have the private key of this external company so the certificate.verifyXmlSignature cannot be used. please let me know your thoughts. Thanks in advantage.
b
you can try asking support, but i think it only supports private keys
c
Ok, Thanks.