File: debians_disable_outdated_ssl_cert

package info (click to toggle)
datalad 1.3.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,132 kB
  • sloc: python: 69,299; sh: 1,521; makefile: 220
file content (9 lines) | stat: -rwxr-xr-x 300 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
#!/bin/bash

# "Recipe" from https://superuser.com/a/1679332 (thanks @jwodder)
# to mitigate https://github.com/datalad/datalad/issues/6026

if hash update-ca-certificates; then
    sudo sed -i -e 's,^\(mozilla/DST_Root_CA_X3.crt\),!\1,g' /etc/ca-certificates.conf
    sudo update-ca-certificates
fi