OpenSSL Communities

OpenSSL integration with UPKI

Dmitry Belyavsky PublicSeen by 23

The recent eMudhra CA compromise highlighted a critical gap in Linux ecosystem security: while web browsers quickly revoked the affected intermediate certificates via proprietary revocation lists (like Mozilla’s OneCRL and Chrome’s CRLSets), Linux distributions were forced to manually respin and patch their core CA certificate bundles (ca-certificates) to drop the compromised intermediate and root certificates.

Static CA bundle updates do not scale during rapid security incidents. To solve this systemic issue, Linux distributions need a dynamic, platform-independent revocation infrastructure. UPKI (Universal Public Key Infrastructure), originally developed under the rustls umbrella, provides a browser-grade, offline-first revocation solution that fetches and caches CRLs/revocation metadata out-of-band (via a lightweight system daemon running an upki-fetch timer). The specification is available at https://c2sp.org/[email protected]

I’ve raised the discussion on this topic some time ago.

https://github.com/openssl/openssl/discussions/31932

Ubuntu has implemented the tech preview https://discourse.ubuntu.com/t/try-the-upki-preview-for-ubuntu/84705

Go is also going to implement support. https://github.com/golang/go/issues/82402

Nix has got a pull request: https://github.com/NixOS/nixpkgs/pull/578400

I ask the distro community to express their opinion on this topic. From my perspective integrating UPKI natively into OpenSSL 4.2 LTS would establish a universal, robust revocation layer for Linux environments without breaking existing application code contracts or requiring ad-hoc CA bundle respins during security crises. If supported, we still need to design the proper implementation.

Do you support integration of UPKI with OpenSSL?

poll by Dmitry Belyavsky Closing Mon 9 Nov 2026 8:00AM

Choose the option(s) you favor.

Current results

Jaroslav Reznik

Yes, in 4.2

Ideally 4.2 given the outcome of the recent eMudhra incident as it uncovered this to be a gap in the ecosystem and we can expect other CAs to become under more scrutiny now.

Gordon Tetlow

Yes, in 4.2

I like the "optional but default" opinion. I also believe a C implementation would be most useful.

Randall Becker

Yes, in 4.2

As long as this can be done without Rust or configurable to disable if Rust is not available.

Clemens Lang

Yes, we should definitely look at having this. upki is Rust, so there will be older platforms left behind, but they're no worse off than they are today. I don't think older platforms should prevent us from improving security in more modern environments.

In other words: Yes, OpenSSL should support this, as an optional but default dependency.

The other thing that would have helped in this situation would be checking of certificate transparency SCTs, which I guess we should look into tackling as well.

Kurt Roeckx

I have been wanting to have better PKI support for more than 10 years. This includes a trust store where you can define things like for what you trust a CA.

One of the functionalities that Mozilla has is being able to distrust certificates with a notBefore date, which probably isn't that important to have.

But being able to actually check the revocation status of a certificate is important. Any solution that improves it is welcome. If if can be used by multiple libraries that certainly a big plus.

I would like to see openssl do this by default. Applications should not need to be modified to get this functionality.

Rust is not a problem. For all arches Debian releases on, rust is available. It's only not available on old architectures.

Checking something like CT can be useful, but we would need to define some policy, have a list of logs that are acceptable and so on. I don't see that happening soon, nor am I sure we want to enforce that by default. Is that something UPKI also provides?

Clemens Lang

Rust is not a problem. For all arches Debian releases on, rust is available. It's only not available on old architectures.

I suspect there will be people working on OpenSSL who disagree with you on that — I personally agree, though. The people that don't have Rust will just not get working revocation checking.

Checking something like CT can be useful, but we would need to define some policy, have a list of logs that are acceptable and so on. I don't see that happening soon, nor am I sure we want to enforce that by default. Is that something UPKI also provides?

Yeah, that one is a bit trickier, so we shouldn't do it in the same push. On the other hand, browsers have this figured out already, so we could certainly steal learn from them. To my knowledge, UPKI does not provide CT checking (and I'm not convinced it would be in scope for the project).

At some point down the road, we'll also need a system service that regularly updates Merkle Tree CA landmarks, which happens to fit pretty nicely into a similar box as updating a CRL database — so having UPKI integration would also be good from that point of view.

Kurt Roeckx

We will use the next LTS release, so I would like to see it in the next LTS release. Otherwise it's going to take an other 2 years before it hits our next release.

Dimitri John Ledkov (Chainguard)

UPKI is nice.

rust is not a problem - platforms that don't have rust will either not have this feature, or will need to port the rust toolchain.

If we had UPKI already, would it have been able to revoke intermediate CAs already or is more work needed in the spec / that project to support this?

I struggle with daemon fetching/updating the revocation data and how that would be integrated into containers; out of band. There likely will be a UPKI project or distributors to publish containers of the UPKI pre-fetched data, that can be mounted as data volumes. In the last round of revocation propagating the ca-certs bundle took the longest, as there was no standard and always available way to mount out-of-band updated revocations into existing running containers / pinned containers.

Separately teaching docker / podman / kubernetes how to out of band attach/mount/update cert-bundle files would be nice. Which likely would have addressed this revocation, and sort of is needed to be solved for the UPKI integration as well.

I really liked what web-application firewalls / introspecting firewalls did of blocking traffic based on revoked intermediate certs by introspecting serverhello. I wish opensource / stock firewalls had this feature, as integrating UPKI into them would likely be the biggest bang for the buck.

Clemens Lang

If we had UPKI already, would it have been able to revoke intermediate CAs already or is more work needed in the spec / that project to support this?

Haven't tested, but it should have worked out of the box for both intermediates and leaf certificates.

I struggle with daemon fetching/updating the revocation data and how that would be integrated into containers

Yeah, that remains a problem to be solved for the container world. One idea was that the host would do this, and the files could just be bind-mounted read-only. Another was that there should be some kind of IPC interface (varlink?) to pass queries from containers to hosts. I'm not sure your data volumes idea works unless that data can be updated at runtime? I'd expect updates at least daily, if not more frequent.

Separately teaching docker / podman / kubernetes how to out of band attach/mount/update cert-bundle files would be nice.

The issue with that is that the CA bundle isn't in the same location on every distro, so the orchestrators would have to learn to recognize the distro of the container image that's being started and put the update CA bundle in the correct format into the correct place. I don't think that's going to be solvable any time soon. For UPKI, we can avoid this mess if all distributions agree on the same interface (e.g., same paths, same IPC, same standard location for the loadable module).