Skip to content

Commit 54e9331

Browse files
committed
Add workaround for certificate-related issues
1 parent 3c7d28d commit 54e9331

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.ci/cert-workaround

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
3+
mkdir -p /usr/local/share/ca-certificates/extra
4+
cd /usr/local/share/ca-certificates/extra
5+
6+
# Manually get intermediate CA certificates to deal with websites that don't
7+
# serve a full certificate chain. These are misconfigured websites, but we want
8+
# to be able to handle them anyways.
9+
wget https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem.txt -O lets-encrypt-x3-cross-signed.crt
10+
wget https://spaces.at.internet2.edu/download/attachments/24576265/InCommonRSAServerCA_2.crt
11+
12+
# Remove expired root certificates to work around OpenSSL 1.0.x issue.
13+
sed -i 's/^\(mozilla\/AddTrust_External_Root.crt\)$/!\1/' /etc/ca-certificates.conf
14+
15+
update-ca-certificates

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
language: ruby
2+
dist: bionic
3+
24
before_install:
35
- gem update --system # necessary, see https://bundler.io/blog/2019/05/14/solutions-for-cant-find-gem-bundler-with-executable-bundle.html
6+
- sudo .ci/cert-workaround
47
before_script:
58
- gem install html-proofer
69
script:
710
- bundle exec jekyll build
811
- >-
9-
htmlproofer ./_site
12+
travis_retry htmlproofer ./_site
1013
--check-html
1114
--check-favicon
1215
--enforce-https

0 commit comments

Comments
 (0)