OAuth 2.0 Machine to Machine (M2M) Certificate generation

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

Leave a comment

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