shree sashti
08/25/2025, 9:48 AMsuitecloud account:setup:ci --authid SB3_M2M --certificateid ouoVREScQPsGq-fsdfhodsofnvosdnvo --privatekeypath "/Users/shreesashti.lk/Documents/SDF/Authentication Files/SB3" --account 3822968_SB3
Kindly help me authenticate using M2M using node cliJonathan MacKenzie
08/25/2025, 4:27 PMSUITECLOUD_CI
and SUITECLOUD_CI_PASSKEY
environment variables set?
https://system.netsuite.com/app/help/helpcenter.nl?fid=article_0113125121.htmlshree sashti
08/26/2025, 2:20 PMThe following environment variables are currently set: SUITECLOUD_CI, SUITECLOUD_CI_PASSKEY
The operation you are trying to perform is not allowed with the current environment variable configuration.
For more information, see <https://system.netsuite.com/app/help/helpcenter.nl?fid=article_0113125121.html>.
shree sashti
08/26/2025, 2:21 PMMarcos Lopez
08/31/2025, 8:21 PMJonathan MacKenzie
09/02/2025, 1:26 PMaccount:setup
) won't work while those environment variables are set, only machine-to-machine (account:setup:ci
)shree sashti
09/08/2025, 2:43 PMshree sashti
09/08/2025, 2:50 PMThere was an error with the private key used to authenticate. Verify the contents of the private key.
when i create a EC cert
and There was an error with the certificate ID used to authenticate.
when i used a RSA cert .
but my certs are active (not revoked). What am i missing here.
steps i followed :
1. created sdf dev role and assigned to the user
2. created integration record with Client Credentials (Machine To Machine) Grant checked along with scope
3. generated .pem public and private keys using the https://3822968-sb3.app.netsuite.com/app/help/helpcenter.nl?fid=section_162686838198.html cmds
4. Uploaded the public key and got the certificate id
5. in bash created a project , inside the project ive used suitecloud account:setup:ci --authid sb3 --certificateid akjsdfajrRANDOMjfbarkfj --privatekeypath /Users/shreesashti.lk/Documents/SDF/Authentication_Files/SB3/private.pem --account 123456_SB3
6. The bash says authenticating ... and throws the above errorsshree sashti
09/08/2025, 2:51 PMThere was an error with the private key used to authenticate. Verify the contents of the private key.
Jonathan MacKenzie
09/08/2025, 2:54 PMakjsdfajrRANDOMjfbarkfj
is in place of the actual certificate id copied form your account?shree sashti
09/08/2025, 2:56 PMakjsdfajrRANDOMjfbarkfj
was typed on purpose to mask the actual certificate idMarcos Lopez
09/08/2025, 2:59 PMopenssl req -x509 -newkey rsa:4096 -sha256 -keyout private-key.pem -out certificate.pem -nodes -days 365
Anyway, we usually use the native Developer role (not custom) and as you said Suitecloud Development Integration and this commands in our CIshree sashti
09/08/2025, 3:07 PMshree sashti
09/08/2025, 4:05 PMAmruth T A
09/09/2025, 10:53 AMshree sashti
09/09/2025, 4:35 PM