Generating SFTP GUID and Host Key using a NetSuite Suitelet

Overview When integrating NetSuite with external systems over SFTP (Secure File Transfer Protocol), it is often necessary to store or retrieve authentication credentials such as GUIDs (Globally Unique Identifiers) and Host Keys. These credentials are essential for NetSuite’s SFTP connection objects to validate secure transfers. In this article, we’ll walk through a Suitelet script that… Continue reading Generating SFTP GUID and Host Key using a NetSuite Suitelet

Retrieve the timestamp of a file downloaded from SFTP server

To retrieve the timestamp of a file downloaded from an SFTP server using SuiteScript, you’ll primarily be interacting with the N/sftp module. NetSuite’s N/sftp module allows you to connect to an SFTP server and perform operations such as downloading files. However, to specifically get the timestamp of a file, you will need to use the… Continue reading Retrieve the timestamp of a file downloaded from SFTP server

Convert PPK file to PEM file

follow the steps to convert PPK to PEM: Launch PuTTYgen application. Under File menu, click Load private key. Select your .ppk file, and then choose Open. Now, under the Conversions menu, click Export OpenSSH Key (force new file format). Set a new name with the “.pem” extension and click the “Save” button