- Remove the DST_Root_CA_X3 certificate from the configuration
Code: Select all
sudo sed -i '/^mozilla\/DST_Root_CA_X3.crt$/ s/^/!/' /etc/ca-certificates.conf sudo update-ca-certificates
- To be sure, get the old certificate out of the way
If the command fails the certificate has already been deleted: that is OK
Code: Select all
sudo mv -v /etc/ssl/certs/DST_Root_CA_X3.pem /etc/ssl/certs/DST_Root_CA_X3.pemxxx
If the command goes well the certificate is now unreachable: that is OK - Update the system certificate store
Code: Select all
sudo update-ca-certificates
- Synchronise the system certificates into Mono
Code: Select all
sudo cert-sync /etc/ssl/certs/ca-certificates.crt
Background: This error is caused by an expired root certificate for Let's Encrypt. Linux and Windows ignore this expired certificate if the current certificate is present. Mono however fails to verify the connection if the expired certificate is present, ignoring the current certificate!
The commands above remove the expired certificate from the system certificate store, then resynchronise the system store into the Mono certificate store.