awscli includes a bundled certificate store:
root@ec162dd99925:~# dpkg -L awscli | grep pem
/usr/lib/python3/dist-packages/awscli/botocore/cacert.pem
If both of ca-certificates and python3-certifi are not installed, it will
use this bundled certificate store to authenticate TLS endpoints:
root@ec162dd99925:~# dpkg -s ca-certificates
dpkg-query: package 'ca-certificates' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.
root@ec162dd99925:~# dpkg -s python3-certifi
dpkg-query: package 'python3-certifi' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files.
root@ec162dd99925:~# aws sts get-caller-identity
{
"UserId": "AROAW32WRALYCRFWKOVCL:botocore-session-1794836848",
"Account": "<<redacted>>",
"Arn": "arn:aws:sts::<<redacted>>:assumed-role/<<redacted>>/botocore-session-1794836848"
}
root@ec162dd99925:~# mv /usr/lib/python3/dist-packages/awscli/botocore/cacert.pem /root/
root@ec162dd99925:~# aws sts get-caller-identity
SSL validation failed for https://sts.us-west-2.amazonaws.com/ [Errno 2] No such file or directory
If both of python3-certifi and ca-certificates are installed, the system-wide
certificates will be used:
root@ec162dd99925:~# rm -f /usr/lib/python3/dist-packages/awscli/botocore/cacert.pem && dpkg -l python3-certifi ca-certificates && ls -l /usr/lib/python3/dist-packages/awscli/botocore/cacert.pem ; aws sts get-caller-identity
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-===============-================-============-============================================================================
ii ca-certificates 20250419+deb13u1 all Common CA certificates
ii python3-certifi 2025.1.31+ds-1 all root certificates for validating SSL certs and verifying TLS hosts (python3)
ls: cannot access '/usr/lib/python3/dist-packages/awscli/botocore/cacert.pem': No such file or directory
{
"UserId": "AROAW32WRALYCRFWKOVCL:botocore-session-1794836848",
"Account": "<<redacted>>",
"Arn": "arn:aws:sts::<<redacted>>:assumed-role/<<redacted>>/botocore-session-1794836848"
}
Hello, Bug #1154168 in awscli reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/cloud-team/awscli/-/commit/75bbba18014cd61cbe5b885fce6dae46cf67c37c (this message was generated automatically) -- Greetings https://bugs.debian.org/1154168
We believe that the bug you reported is fixed in the latest version of
awscli, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 1154168@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Noah Meyerhans <noahm@debian.org> (supplier of updated awscli package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 16 Nov 2026 10:21:05 -0500
Source: awscli
Architecture: source
Version: 2.38.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Cloud Team <debian-cloud@lists.debian.org>
Changed-By: Noah Meyerhans <noahm@debian.org>
Closes: 1149010 1154168
Changes:
awscli (2.38.1-2) unstable; urgency=medium
.
[ Noah Meyerhans ]
* ci: disable the uscan test, which often fails
* replace 'flit' build-dependency with the new 'python3-flit' package
(Closes: #1149010)
* Add missing python3-urllib3 and python3-docutils to build-deps
.
[ Nico Della Torre ]
* Use the system CA certificate store (Closes: #1154168)
* d/watch: Update to version 5
* d/control: Bump Standards-Version to 4.7.4
* d/control: Drop "Rules-Requires-Root: no"
* d/control: Depend on python3-certifi, as python-botocore does
Checksums-Sha1:
fe4d04e7512c4df9b168712b48365819faaab724 2344 awscli_2.38.1-2.dsc
7eec3e918736ad814abad6322cdafa9a2bbde5a7 9940 awscli_2.38.1-2.debian.tar.xz
1df90696cb4c03f6f4bcf4652490a0a06e06e52d 6790 awscli_2.38.1-2_source.buildinfo
Checksums-Sha256:
05769aaf525ee706ab97a5a4316539fb629f26a6511fe1085f6d10f716d5499f 2344 awscli_2.38.1-2.dsc
a56b829cf6b4acf1e35d1c26a0afe5724e7965a166504bdc7085bd34c71bb55c 9940 awscli_2.38.1-2.debian.tar.xz
9d9c3955d757db02db4ac6c2a463f68fb6fd82d97a845f99201eb4ad08ee3441 6790 awscli_2.38.1-2_source.buildinfo
Files:
bdd4f6495219247e76b59e6b515bd382 2344 admin optional awscli_2.38.1-2.dsc
75dce16a26f31ebee25570d3e3048251 9940 admin optional awscli_2.38.1-2.debian.tar.xz
1e4e4ef4d1cbace55d60460e52e50a8f 6790 admin optional awscli_2.38.1-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEE5G+E0xEKhJuZ7RJ34+c1IpshdTUFAmr7H8MACgkQ4+c1Ipsh
dTUN4A/9FaVWoQ+eBk194kBM4BOhV0gpfhgjxQOajw1rQnKQ4JgDeroyOhRky9R9
Dcs8nvANtjWZhyDsj1h2Ob0WXe7jgSW02WW5Z8ZLgYDfvLSLSR+VZeYaxE7xKVW0
wC1NjuQL+gyuTn1HzAk8g1iTKtQkA2ril0KeAzD2nkn7r6r9C2daPcllRaWFjk8A
Sl5eDBMvOBWpL4Xky4PL0CrUI6DqiOpSzef3ZaXoPJD5tEwlufCP7gGNqa67oyWL
AsQMXdpDC6LxDZdUgY+GsmeVlWchwsFbZ9Q8uqhxQlkavDUYaiAovGyGkU3C8+E+
5hT3a9BzVKfn9OZ4SRK+4rF8K4CjN3+mkb9nl/izxiFylZDZy3tkQD1ZDAt8Umy1
D3JRvqtHizkbzjlVARwGOG9aSiDVh2xhQr88A2eOsKNYHv+cpA6BgbMzmI9PFx14
vRvKG53R7zMQQlh39vk0/JpFNy5KB+tvhT/QTKzHj1udKuU3npS4oDoTlvWr7s2V
AYyDMXwypERaGuvveBdn00Gp7I6DOa8k7KWOAFpV85OSLqW+qNEN+kxHRtTPg2wg
h5fUPqZ3qr50uowKsLvQh5ddVblJfBE30tANWN/DQE8I+kSYspiN3jh4uz2uJi9b
D/7GTq5BlfUcaNZ6xRl9s9FMsFXhTe+SoBkKd5L2sG1pXkswu+M=
=axRo
-----END PGP SIGNATURE-----