Skip to content

Commit 4d36405

Browse files
Get the rvm GPG key via curl from the rvm web side instead of via hkp.
Rationale: hkp is less reliable if installation is behind a firewall, and the installer might still work even if RVM changes its key. FWIW: The previous code no longer works, as gpg nowadays requires a "0x" prefix in front of the fingerprint.
1 parent 15983c2 commit 4d36405

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

rails-install-archlinux.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ echo "Installs ImageMagick for image processing"
1313
sudo pacman -S --noconfirm imagemagick
1414

1515
echo "Installs RVM (Ruby Version Manager) for handling Ruby installation"
16-
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
16+
# Retrieve the GPG key.
17+
curl -sSL https://rvm.io/mpapis.asc | gpg --import -
1718
curl -sSL https://get.rvm.io | bash -s stable
1819
source ~/.rvm/scripts/rvm
1920

rails-install-ubuntu.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ echo "Installs ImageMagick for image processing"
2121
sudo apt-get install imagemagick --fix-missing -y
2222

2323
echo "Installs RVM (Ruby Version Manager) for handling Ruby installation"
24-
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
24+
# Retrieve the GPG key.
25+
curl -sSL https://rvm.io/mpapis.asc | gpg --import -
2526
curl -sSL https://get.rvm.io | bash -s stable
2627
source ~/.rvm/scripts/rvm
2728

0 commit comments

Comments
 (0)