Skip to content

certificate verify failed (certificate has expired) even with latest release with letsencrypt #12126

@gionn

Description

@gionn

Description

Facing the Letsencrypt Root CA X3 expiration, I hoped that upgrading to latest 16.x (16.16.7) would have solved the issue, but it's not.

Chef Version

16.16.7

Platform Version

System Info:
------------
chef_version=16.16.7
platform=ubuntu
platform_version=18.04
ruby=ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x86_64-linux]
program_name=/opt/chef/bin/chef-solo
executable=/opt/chef/bin/chef-solo

Replication Case

apt_repository("postgresql_org_repository_13") do
  action [:add]
  uri "https://download.postgresql.org/pub/repos/apt/"
  distribution "bionic-pgdg"
  components ["main", "13"]
  key ["https://download.postgresql.org/pub/repos/apt/ACCC4CF8.asc"]
end

Client Output

OpenSSL::SSL::SSLError
----------------------
apt_repository[postgresql_org_repository_13] (/home/ubuntu/chef/gionn_chef/local-mode-cache/cache/cookbooks/postgresql/resources/repository.rb line 93) had an error: OpenSSL::SSL::SSLError: remote_file[/home/ubuntu/chef/gionn_chef/local-mode-cache/cache/https___download_postgresql_org_pub_repos_apt_ACCC4CF8_asc] (/opt/chef/embedded/lib/ruby/gems/2.7.0/gems/chef-16.16.7/lib/chef/resource/apt_repository.rb line 261) had an error: OpenSSL::SSL::SSLError: SSL Error connecting to https://download.postgresql.org/pub/repos/apt/ACCC4CF8.asc - SSL_connect returned=1 errno=0 state=error: certificate verify failed (certificate has expired)

Stacktrace

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UntriagedAn issue that has yet to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions