Should they be added to .gitignore before clicking on my site on github?
They should not be in the repo at all, that is, stored outside the repo.
Thus:
- you do not need to manage
.gitignore, - you can keep these keys somewhere safe.
GitHub 2013 , , . .
:
.
- "6 , " - . , "90 - , , , id_rsa"
2016 "" ( ) :

OP :
, Heroku , ">heroku certs:add server.crt server.key" .
" Config Vars" :
- , . vars bashrc. Heroku config vars.
" Heroku: SSL" . Heroku . git.