I'm interested to know if anyone has had machine-t...
# sdf
p
I'm interested to know if anyone has had machine-to-machine authorization work successfully. UPD on MacOS
a
I got it working, it works properly, NetSuite would only allow a max of 2 years validity for the cert no matter if you create it for 5 years (that is documented behavior). I got it working in the UI tho... not sure about CLI.
They have some documented commands to generate the certificates that do not work, NetSuite would complaint with: Invalid Cert something... This works: openssl req -new -x509 -newkey rsa:4096 -keyout private.pem -sigopt rsa_padding_mode:pss -sha256 -sigopt rsa_pss_saltlen:64 -out public.pem -nodes -days 800
🙌 1
r
@alien4u thank you for this. NetSuite was initially just throwing "Unexpected Error" with the documented cert gen commands. Using yours gave me a cert that worked.
👍 1
p
@alien4u Thank you very much! It works for me too.
👍 1
l
for window ?
a
It would not matter, if on Windows and you want to generate a certificate you are going to need openssl either standalone or via WSL
l
I tried the setup but returns an error while setting the account from CLI as below Server error. Verify the arguments of the command and that the account has the following features enabled: OAuth 2.0 and SuiteCloud Development Framework.
any idea ?
@alien4u
f
I had no issues with the M2M comms. Worked first time.