mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Docker: T3911: invalidate old LetsEncrypt CA
This commit is contained in:
parent
c0dc0f5578
commit
72226d89e9
7
data/live-build-config/hooks/live/00-update-letsencrypt-root-ca.chroot
Executable file
7
data/live-build-config/hooks/live/00-update-letsencrypt-root-ca.chroot
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo I: Un-trust old LetsEncrypt root
|
||||
sed -i '/^mozilla\/DST_Root_CA_X3/s/^/!/' /etc/ca-certificates.conf
|
||||
echo I: Update CA certificates
|
||||
update-ca-certificates
|
||||
|
||||
@ -72,6 +72,15 @@ RUN apt-get update && apt-get install -y \
|
||||
jq \
|
||||
grub2
|
||||
|
||||
#
|
||||
# The LetsEncrypt root certificate expired - we need to install the new ones
|
||||
#
|
||||
RUN apt-get update && apt-get install -y ca-certificates
|
||||
# Un-trust the old certificate
|
||||
RUN sed -i '/^mozilla\/DST_Root_CA_X3/s/^/!/' /etc/ca-certificates.conf
|
||||
# Update CA store
|
||||
RUN update-ca-certificates
|
||||
|
||||
#
|
||||
# Setup Debian Jessie Backports repository
|
||||
#
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user