__apt_key_uri does not work with insecure / untrusted certificates #189

Closed
opened 2021-11-20 15:21:04 +00:00 by ungleich-gitea · 2 comments

Created by: telmich

INFO: cephmon01.ungleich.ch: Executing code for __apt_key_uri/ceph
gpg: no valid OpenPGP data found.

__apt_key_uri ceph
--name "Ceph release"
--uri 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc'

root@cephmon01:~# curl 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc' | apt-key add -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
gpg: no valid OpenPGP data found.
root@cephmon01:~# curl -k 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc' | apt-key add -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:100 1752 0 1752 0 0 1995 0 --:--:-- --:--:-- --:--:-- 2416
OK

*Created by: telmich* INFO: cephmon01.ungleich.ch: Executing code for __apt_key_uri/ceph gpg: no valid OpenPGP data found. __apt_key_uri ceph \ --name "Ceph release" \ --uri 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc' root@cephmon01:~# curl 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc' | apt-key add - % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (60) SSL certificate problem: unable to get local issuer certificate More details here: http://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. gpg: no valid OpenPGP data found. root@cephmon01:~# curl -k 'https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc' | apt-key add - % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:100 1752 0 1752 0 0 1995 0 --:--:-- --:--:-- --:--:-- 2416 OK
ungleich-gitea added the
Stale
label 2021-11-20 15:21:04 +00:00
Author
Owner

closed

closed
Author
Owner

Created by: telmich

Maybe adding --insecure to the type is the right solution to allow using https sites for which the distro does not have a CA present

*Created by: telmich* Maybe adding --insecure to the type is the right solution to allow using https sites for which the distro does not have a CA present
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#189
No description provided.