Uploading Private SSH Keys

You can store and manage your keys on the Keys page. Keys with or without passphrase are accepted.

To upload a new key:

  1. Go to Setup > Company > Preferences > Keys.
  2. At the top of the page, click the Create New button.
  3. In the New Private Key window, on the Details tab, enter a descriptive name for this key in the Name field.
  4. In the ID field, enter the script ID for this key. The script ID of the key lets you access the key using SuiteScript. You should make this a descriptive ID with no spaces or special characters. NetSuite prefixes the script ID with ‘custkey’.
  5. In the Description field, enter a description of this key, such as its use and who maintains it.
  6. On the Files tab, in the Private Key File field, choose a file in PEM format to upload the key.Examples of key files are id_rsaid_ecdsa, and id_dsa.
  7. In the Password field, enter the same password that you used when generating the key by using the ssh-keygen command.
  8. In the Audience tab, check the Restrict to Employees box to restrict the usage of the key in SuiteScript to the specified list of employees.Employees must also be using roles with the Key Access permission to be able to execute a script that accesses a key.
  9. To restrict access through SuiteScript to specific scripts, enter the script IDs in the Restrict to Scripts field.
  10. Click Save. The key is decrypted and validated using the provided password. The key and password are securely stored to the NetSuite database.

Leave a comment

Your email address will not be published. Required fields are marked *