cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
krubin
Level 7

Providing Public Key using RestAPI

Jump to solution

Hello,

1. I have attempted to do a "Put" of the Public Key using the Rest API.
The url is https://siteID-uat.flexnetoperations.com/flexnet/operations/api/updates/update-authorization-key (siteID) is assigned with our site
The response that I get back is "Full authentication is required to access this resource".

Was there something that I was supposed to do first in Flexnet Operations to establish credentials for the Public Key? I have not found this step in the guides.
I don't think the Public Key should be encoded first, before sent by the "Put" as shown above?


2. My public and private keys were generated using OpenSSL: (Do these steps below seem correct?)
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub

Thank you,
Ken

0 Kudos
(2) Solutions
jberthold
Revenera Moderator Revenera Moderator
Revenera Moderator

Hi @krubin ,

Q1: I've only used openssl a few times and am no expert.   I'd recommend using https://cryptotools.net/rsagen to generate your public/private key pair.  Simply select a 2048 Key Length and click the Generate Key Pair button and you are done.  

keygen.png

Q2: See if you still get the red text in Postman when trying the above.  You most likely will need to delete some newline chars when copy and pasting the public key from the browser UI into Postman. 

Q3: Re-run the Python script with the new Private key.

Thanks,

View solution in original post

Thank you Jim and Eric! I have a JWT also now.

View solution in original post

(13) Replies