Here is my secret from which I want to generate pem file. which I want to use for authenticating GitHub API to generate accessToken.
Asked
Active
Viewed 954 times
1 Answers
0
You don't? The way I know how to do it is to generate a private key and then use that to grab temporary (1 hour) PATs when you need them. To do that, you need to use special JWT tokens for the first few calls to the API - to discover the URL to get the access token and then to call that. This is described, for python, in https://gist.github.com/pelson/47c0c89a3522ed8da5cc305afc2562b0, although I used pyjwt and the required instructions were seemingly slightly different.

johnfo
- 1,676
- 2
- 17
- 28