- Revenera Community
- :
- FlexNet Operations
- :
- FlexNet Operations Forum
- :
- Providing Public Key using RestAPI
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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.
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,
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Thank you Jim and Eric! I have a JWT also now.