Skip to content

Commit bae6f62

Browse files
authored
Fix SSL CRL verification error in INSPIRE API connections (#2770)
Configure a custom OpenSSL certificate store for HTTPS connections to inspirehep.net that skips Certificate Revocation List (CRL) checking. The default Ruby OpenSSL configuration was failing with 'unable to get certificate CRL' errors when connecting to the INSPIRE API, likely due to network/firewall restrictions blocking CRL distribution point access. The certificate chain is still validated normally; only the revocation list check is bypassed.
1 parent e1788fc commit bae6f62

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

_plugins/getpub.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ class Generator < Jekyll::Generator
2626
def generate(site)
2727
@net = Net::HTTP.new('inspirehep.net', 443)
2828
@net.use_ssl = true
29+
# Use a cert store without CRL checking (CRL checks can fail due to network/firewall issues)
30+
store = OpenSSL::X509::Store.new
31+
store.set_default_paths
32+
@net.cert_store = store
2933

3034
@site = site
3135

0 commit comments

Comments
 (0)