Skip to content

Instantly share code, notes, and snippets.

@Nuru
Nuru / Sign your git commits with SSH.md
Last active September 17, 2022 05:06
How to sign your git commits with SSH

If you are already using SSH to authenticate to GitHub, it is very easy to sign all your commits as well, as long as you have already installed Git 2.34.0 or later. (Note, there may be problems with OpenSSH 8.7. Use an earlier or later version. I have this working with OpenSSH 8.1p1.)

Configure git to sign all your commits with an SSH key

git config --global gpg.format ssh
git config --global commit.gpgsign true
git config --global tag.gpgsign true
@Nuru
Nuru / gist:6380173
Last active December 21, 2015 23:09
rvm requirements output, debugging OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server key exchange B: bad ecpoint
#
# using rvm 1.18.14 (stable) and ruby 1.9.3-p392 a running Rails application all of a sudden stopped being able to
# connect via SSL with "bad ecpoint" error.
#
# Look at https://github.com/pivotal/pivotal_workstation/issues/221#issuecomment-14577443 for possible explanation
#
# Brew says openssl 1.0.1e is installed.
# rvm pkg install openssl
# installs 1.0.1c
# Then make rvm rubies use it: