'Certificate verify failed for GitHub App using octokit

Im getting this error:

SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain)

for this line of code:

result = client.create_installation_access_token(github_token[:installation])

I am not sure why this happened because my github app was working perfectly fine until I added a github enterprise app. Is there something I have to do to have both the regular github app and the enterprise app?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source