We can generate OAuth 2.0 M2M certificate files, public key, and private key files for NetSuite in this method.
Prerequisites: Download and set up OpenSSL portable version.
Run this command in Powershell from the ‘bin’ folder in the SSL library:
.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 365