Quick summary to get NetSuite SDF Plugin 2025.1.0 ...
# sdf
a
Quick summary to get NetSuite SDF Plugin 2025.1.0 working with WebStorm and M2M Certificates, specials thanks to @Ali Syed (NS DevTools QA) who was very kind to jump into a quick call with me to fix it: WebStorm 2024.3.3 with NetSuite SDF Plugin 2025.1.0 MacOs Setup for M2M Certificates: • Create your certificates: ◦ 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 • Upload your public key to NetSuite. • Add your environment variables: ◦ nano ~/.zshrc ▪︎ export SUITECLOUD_CI_PASSKEY=This3l3ctr0c0t3c4isBrokenButItIsWhatItIs ▪︎ export SUITECLOUD_CI=1 ◦ source ~/.zshrc • Re-add the environtment variable with launchctl so WebStorm can see them: ◦ launchctl setenv SUITECLOUD_CI_PASSKEY This3l3ctr0c0t3c4isBrokenButItIsWhatItIs ◦ launchctl setenv SUITECLOUD_CI 1 • Open or Restart WebStorm, the SuiteCloud SDF Plugin Account Management now allows you to add M2M Credentials.
🙌 3
@Jonathan MacKenzie Steps to make the WebStorm plugin work in MacOS!
j
i was reading this earlier yep, haven't gotten it working yet but thanks for sharing! does
launchctl
need to be run from a specific place?
a
Console / Terminal in MacOS, the deal is the WebStorm Plugin team decided to use the OS env variables but those do not behave the same across different systems, so technically it was not a good software design decision.
j
👍 it doesn't matter which directory that's run from though eh?
launchctl
sets them globally no matter where you run it from?
a
Yes. launchctl sets globally
j
i might just need to make a new certificate/credentials file, i set it up a while back for use with the cli
this password that's set for the
SUITECLOUD_CI_PASSKEY
doesn't need to be used in the creation of the key somehow right? does the actual value matter?
a
The passkey is not asked for, while creating a new authid
It will be useful, when you want to upload your credentials file with authids in a CI/CD environment, then you need to set same value for passkey.
j
ah ok i understand the purpose of it now, thank you. i'll try restarting and keep at it
i figured out the issue:
launchctl
MUST be run from the Terminal app, if run from iTerm2 it's not the same "calling context" so doesn't take effect launching webstorm from iTerm2 by running
/Applications/WebStorm.app/Contents/MacOS/webstorm
also works EDIT: i haven't tested this but it might be possible that my issue was actually that i was using tmux. in any case using the native terminal (without tmux) worked