Skip to content

Commit

Permalink
remove cert adding
Browse files Browse the repository at this point in the history
  • Loading branch information
iblacksand committed Jun 18, 2024
1 parent 318527c commit 584cc51
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .github/workflows/check-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,6 @@ jobs:
R_KEEP_PKG_SOURCE: yes

steps:
- name: Add custom certificate to trusted store
if: matrix.config.os == 'ubuntu-latest'
run: |
sudo apt install --only-upgrade ca-certificates
sudo apt install --only-upgrade openssl
# Download or access the certificate
echo "${{ secrets.CERT_CHAIN }}" > website_cert_chain.pem
sudo curl -k https://letsencrypt.org/certs/isrgrootx1.pem.txt -o /usr/local/share/ca-certificates/isrgrootx1.crt
sudo curl -k https://letsencrypt.org/certs/letsencryptauthorityx1.pem.txt -o /usr/local/share/ca-certificates/letsencryptauthorityx1.crt
sudo curl -k https://letsencrypt.org/certs/letsencryptauthorityx2.pem.txt -o /usr/local/share/ca-certificates/letsencryptauthorityx2.crt
sudo curl -k https://letsencrypt.org/certs/lets-encrypt-x1-cross-signed.pem.txt -o /usr/local/share/ca-certificates/letsencryptx1.crt
sudo curl -k https://letsencrypt.org/certs/lets-encrypt-x2-cross-signed.pem.txt -o /usr/local/share/ca-certificates/letsencryptx2.crt
sudo curl -k https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem.txt -o /usr/local/share/ca-certificates/letsencryptx3.crt
sudo curl -k https://letsencrypt.org/certs/lets-encrypt-x4-cross-signed.pem.txt -o /usr/local/share/ca-certificates/letsencryptx4.crt
sudo dpkg-reconfigure ca-certificates
# Add the certificate to the system's trusted certificates
sudo cp website_cert_chain.pem /usr/local/share/ca-certificates/website_cert_chain.crt
sudo update-ca-certificates
sudo dpkg-reconfigure ca-certificates
# Verify the certificate is trusted
# openssl verify /usr/local/share/ca-certificates/website_cert_chain.crt

shell: bash

- uses: actions/checkout@v3

Expand Down

0 comments on commit 584cc51

Please sign in to comment.