Public bug reported:

Ubuntu 26.10 integrates upki into curl by default.

However, upki rejects self-signed certificates, even if OpenSSL is configured 
to trust them (either via placing the cert in system trust store, or explicitly 
via `--cacert`).
This breaks curl in setups that rely on trusted self-signed certs.

Affected Versions:

- upki 1.0.0~beta.3+repack-0ubuntu2

[Reproduction]:

On an Ubuntu 26.10 environment with said upki version:

1. Generate a self-signed certificate:

  openssl req -x509 -newkey rsa:2048 -nodes -keyout k.pem -out c.pem \
    -days 2 -subj "/CN=localhost" \
    -addext "subjectAltName=DNS:localhost"

2. Start a local HTTPS server:

  openssl s_server -accept 4433 -cert c.pem -key k.pem -www &

3. Explicitly trust the certificate:

  curl --cacert c.pem https://localhost:4433/

4. Install it as a system CA and retry:

  cp c.pem /usr/local/share/ca-certificates/test.crt
  update-ca-certificates
  curl https://localhost:4433/

Expectation:

Both steps 3 and 4 to succeed because OpenSSL accepts the explicitly
trusted certificate.

Actual Result:

Both commands fail with exit status 60:

  curl: (60) SSL certificate OpenSSL verify result: application verification
  failure (50)

** Affects: upki (Ubuntu)
     Importance: High
     Assignee: Shiva Kiran Koninty (skran)
         Status: New

** Affects: curl (Ubuntu Stonking)
     Importance: High
         Status: New

** Affects: upki (Ubuntu Stonking)
     Importance: High
     Assignee: Shiva Kiran Koninty (skran)
         Status: New

** Affects: upki (Ubuntu Tenacious)
     Importance: High
     Assignee: Shiva Kiran Koninty (skran)
         Status: New

** Also affects: curl (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: curl (Ubuntu)
   Importance: Undecided => High

** Changed in: curl (Ubuntu)
    Milestone: None => stonking-updates

** Also affects: curl (Ubuntu Stonking)
   Importance: Undecided
       Status: New

** Also affects: upki (Ubuntu Stonking)
   Importance: Undecided
       Status: New

** No longer affects: curl (Ubuntu Stonking)

** No longer affects: upki (Ubuntu Stonking)

** Also affects: curl (Ubuntu Stonking)
   Importance: Undecided
       Status: New

** Also affects: upki (Ubuntu Stonking)
   Importance: Undecided
       Status: New

** No longer affects: curl (Ubuntu Stonking)

** Also affects: curl (Ubuntu Stonking)
   Importance: Undecided
       Status: New

** Changed in: curl (Ubuntu Stonking)
   Importance: Undecided => High

** Changed in: upki (Ubuntu Stonking)
   Importance: Undecided => High

** Changed in: upki (Ubuntu Stonking)
    Milestone: None => stonking-updates

** Changed in: curl (Ubuntu Stonking)
    Milestone: None => stonking-updates

** Changed in: upki (Ubuntu Stonking)
     Assignee: (unassigned) => Shiva Kiran Koninty (skran)

** No longer affects: curl (Ubuntu)

** Also affects: upki (Ubuntu Tenacious)
   Importance: High
     Assignee: Shiva Kiran Koninty (skran)
       Status: New

** Changed in: upki (Ubuntu Tenacious)
    Milestone: stonking-updates => None

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175135

Title:
  libupki_openssl rejects explicitly trusted self-signed certificates

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/upki/+bug/2175135/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to