Alex Howley
07/16/2025, 6:17 PMThere was an error with the private key used to authenticate. Verify the contents of the private key.
I've tried a lot of combinations but right now I'm using the command exactly as they have it in the docs with an up-to-date openssl, switching between ES256 and ES512.
I know that, in general, this could be a million things and cryptography messes are always hard to clean up, but my hope is one of you has been through this pain already and might be able to save me some, since the troubleshooting docs are of no help and just tell me to generate a new certificate (which i have, many times) 😅
I'm using WSL2 on windows (ubuntu 22) but have already worked through the issues with the keyring/lack of browser support. Specifically the command throwing the error is:
suitecloud account:setup:ci --account 1234567 --authid named-authid-here --certificateid CERTIFICATE_ID_HERE --privatekeypath ~/path/to/private.pem
SUITECLOUD_CI=1
and SUITECLOUD_CI_PASSKEY
are set, I've reinstalled the entire CLI and fully removed the old version. The command is finding the right file, because an invalid path throws a different error. And help or general ideas/footguns to be aware of would be handy!Jonathan MacKenzie
07/16/2025, 7:04 PMopenssl req -new -x509 -newkey rsa:4096 -days 730 -keyout private.pem -sigopt rsa_padding_mode:pss -sha256 -sigopt rsa_pss_saltlen:64 -out public.pem -nodes
Alex Howley
07/16/2025, 7:25 PMopenssl
commands, in powershell and wsl, openssl 3.0 and 3.5, and none of them work. Still no idea why, although my best guess is it's either a bug in >2025.1 or the suitecloud node CLI (more likely?) that improperly associates ES keys with old RSA keys somehow, or a slight misdocumentation in what is actually supported that I'm not smart enough to sniff out.
Thank you so much for your help, truly a lifesaver! This ate literally half my day, I was moments from ron swansoning my computer and moving to antarcticaJonathan MacKenzie
07/16/2025, 7:35 PMShawn Talbert
07/17/2025, 5:09 AMExecfy
07/17/2025, 6:23 PMAlex Howley
07/18/2025, 4:00 PMShawn Talbert
07/18/2025, 7:54 PMAlex Howley
07/18/2025, 8:22 PMBROWSER
is set, xdg_open
works, open
works) but any attempt at using browser-based auth just tells me it's not allowed, regardless of if and how SUITECLOUD_CI
is set:
suitecloud account:setup -i
> Browser-based authentication is not allowed for the current execution context.
> For more information, see <https://system.netsuite.com/app/help/helpcenter.nl?fid=article_0113125121.html>.
I'd love to be wrong though, I might just not understand the tool enough to set up a proper workaroundAlex Howley
07/18/2025, 8:25 PMShawn Talbert
07/18/2025, 8:25 PMJonathan MacKenzie
07/18/2025, 8:25 PMSUITECLOUD_CI_PASSKEY
is set, even if SUITECLOUD_CI
is notShawn Talbert
07/18/2025, 8:25 PMShawn Talbert
07/18/2025, 8:26 PMAlex Howley
07/18/2025, 8:28 PMJonathan MacKenzie
07/18/2025, 8:29 PMAlex Howley
07/18/2025, 8:29 PMAlex Howley
07/18/2025, 8:29 PMJonathan MacKenzie
07/18/2025, 8:31 PMShawn Talbert
07/18/2025, 8:31 PMMacKenzie
after all https://outlander.fandom.com/wiki/MacKenzie_of_Leoch