Bit of a beginnner with Github apps. I’m working in golang and attempting to use ghinstallation to set up my Github app. The part where I’m getting confused is that when I downloaded my private key from Github, it returned it to me as a .pem file.
Within the ghinstallation library, I’m attempting to use the NewAppsTransportKeyFromFile with function signature
func NewAppsTransportKeyFromFile(tr http.RoundTripper, appID int64, privateKeyFile string) (*AppsTransport, error)
However, when I pass in the path to the .pem file to that function, it still says that I have invalid credentials. Do I need to use the
openssl rsa -in <pem file> -text
in order to first get the private key portion of the .pem file and then create a file from that only? I’m just a bit lost as to what this function will actually accept.
Or would you recommend that I just try and do the JWT and installation token auth myself?