would the N/crypto and N/crpyto/certificate be abl...
# general
r
would the N/crypto and N/crpyto/certificate be able to perform sign without a digital certificate? my use case is to create a JWT signature (already have the Private Key) so that i can use it for Oauth2 authentication
b
in general the only asymmetric encryption available in suitescript is N/crypto/certificate
jwt signature by itself is not enough to determine compatibility, you will need to find out which algorithm you must use and see if its compatible
you also have to upload the private key as a digital certifate in netsuite, the pem format is fairly popular for that
r
thank you for the response. i am trying to get my MapReduce script to get authenticated and get an access token from Google Cloud Platform, ultimately to be used call google drive apis. have you worked on something like this or do you know a good reference that may help me?
b
there are a bunch of different ways to authenticate with google apis
which one are you trying to use
r
for the mean time, i got a library for JWT signing to work, this way i dont need a digital cert, i struggled on the x.509 compliance, but would be nice to know how.
b
still need to determine how you are authenticating, or at the very least which signing algorithm you need to use