Hello everyone, does someone already tried decrypt...
# suitescript
c
Hello everyone, does someone already tried decrypt a Unarmored PGP file? It seems that on documentation, NetSuite only accepts Armored PGP file:
a
I haven't used the n/pgp module, but I have used pgp before. Can you not just skip this step if it is unarmored? and go straight to decrypt?
i guess alternatively you can just armor it yourself first? using the
.asArmored
method
i wouldn't say Netsuite only accepts armored PGP file... the pgp.parseMessage method only accepts armored PGP files
c
Hi @Anthony OConnor, I tried to go straight decrypting the file, but there is an error that the armor tag is missing. I also tried using .createMessage() then use .toMessage().asArmored(). Still there is an error and can't get pass on that part.
I am integrating SAP Concur to NetSuite. But their file is encrypted with PGP and I can't decrypt it.
s
I'd recommend confirming you can decrypt it locally first (e.g. using
gpg
or similar)