From f83763a83775d93d8fdd23b4d9ac6176a38d36d3 Mon Sep 17 00:00:00 2001 From: Guilherme Branco Date: Tue, 11 Oct 2022 11:15:42 -0300 Subject: [PATCH] fix: Replace an expired trusted CA on Windows with new ones --- internal/system_cas_windows.go | 77 +++++++++++++++++----------------- 1 file changed, 39 insertions(+), 38 deletions(-) diff --git a/internal/system_cas_windows.go b/internal/system_cas_windows.go index 0015eaa36..850c385f4 100644 --- a/internal/system_cas_windows.go +++ b/internal/system_cas_windows.go @@ -47,49 +47,50 @@ func loadSystemCAs() (pool *x509.CertPool, err error) { // $ openssl s_client -connect sso.redhat.com:443 -showcerts var ssoCA1 = []byte(` -----BEGIN CERTIFICATE----- -MIIH5jCCBs6gAwIBAgIQCXX/who4sAsoWCcqTgTIwDANBgkqhkiG9w0BAQsFADB1 +MIIIJDCCBwygAwIBAgIQCI+RYFfnWP4GuTeagfIMxTANBgkqhkiG9w0BAQsFADB1 MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 d3cuZGlnaWNlcnQuY29tMTQwMgYDVQQDEytEaWdpQ2VydCBTSEEyIEV4dGVuZGVk -IFZhbGlkYXRpb24gU2VydmVyIENBMB4XDTIxMTIwMTAwMDAwMFoXDTIyMTIwMTIz -NTk1OVowgcoxHTAbBgNVBA8MFFByaXZhdGUgT3JnYW5pemF0aW9uMRMwEQYLKwYB -BAGCNzwCAQMTAlVTMRkwFwYLKwYBBAGCNzwCAQITCERlbGF3YXJlMRAwDgYDVQQF +IFZhbGlkYXRpb24gU2VydmVyIENBMB4XDTIyMDkxMzAwMDAwMFoXDTIzMDkxMzIz +NTk1OVowgcoxEzARBgsrBgEEAYI3PAIBAxMCVVMxGTAXBgsrBgEEAYI3PAIBAhMI +RGVsYXdhcmUxHTAbBgNVBA8MFFByaXZhdGUgT3JnYW5pemF0aW9uMRAwDgYDVQQF EwcyOTQ1NDM2MQswCQYDVQQGEwJVUzEXMBUGA1UECBMOT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