Skip to content

Commit

Permalink
Merge pull request #189 from hashicorp/ssl-cert-download
Browse files Browse the repository at this point in the history
Ssl cert download
  • Loading branch information
Sophia Castellarin authored Feb 26, 2021
2 parents dacb5c2 + 995060f commit 15d31a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions package/support/install_vagrant.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export PATH="${EMBEDDED_DIR}/bin:${PATH}"
export SSL_CERT_FILE="${EMBEDDED_DIR}/cacert.pem"
export PKG_CONFIG_PATH="${EMBEDDED_DIR}/lib/pkgconfig"

mkdir -p "${EMBEDDED_DIR}/certs"
# Install the pkg-config gem to ensure system can read the bundled *.pc files
${GEM_COMMAND} install pkg-config --no-document -v "~> 1.1.7"

Expand Down
2 changes: 1 addition & 1 deletion substrate/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ cp /vagrant/substrate/common/gemrc "${embed_dir}/etc/gemrc"

# cacert
echo_stderr " -> Writing cacert.pem..."
curl -s --time-cond /vagrant/cacert.pem -o /vagrant/cacert.pem https://curl.haxx.se/ca/cacert.pem
curl -s --time-cond /vagrant/cacert.pem -o /vagrant/cacert.pem https://curl.se/ca/cacert.pem
cp /vagrant/cacert.pem "${embed_dir}/cacert.pem"

# rubyencoder
Expand Down
2 changes: 1 addition & 1 deletion substrate/vagrant-scripts/osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ su vagrant -l -c 'brew update'
su vagrant -l -c 'brew install wget'

# grab new cacert
curl -o cacert.pem https://curl.haxx.se/ca/cacert.pem
curl -o cacert.pem https://curl.se/ca/cacert.pem
mkdir -p /usr/local/etc/openssl
chown vagrant:admin /usr/local/etc/openssl

Expand Down

0 comments on commit 15d31a4

Please sign in to comment.