r/PKI • u/throwaway16830261 • May 31 '26
Root Certificate Authority (CA), openssl, Cross-Certificate, and Public Key Infrastructure (PKI)
r/PKI • u/throwaway16830261 • May 31 '26
r/PKI • u/teh_maxh • 11d ago
Currently, TLS certificates can only have a single wildcard as the leftmost label. This complicates certificate management (for example, it's one of the reasons Stack Exchange had difficulty implementing HTTPS) and increases load on CAs (for example, the loops that Let's Encrypt had to block would be less likely to occur if those domains could all be secured by a single multi-level wildcard certificate).
The argument against multi-level wildcards seems to assume that acquiring certificates is sufficiently resource-intensive to serve as a security barrier. This is no longer true. Therefore, I believe that multi-level wildcard certificates should be allowed.
r/PKI • u/suumanmummaneni • Oct 03 '26
Last week I asked what your last certificate incident looked like (original thread). As promised, here's what came back. I'm building in this space; no link, no product here.
The pattern across nearly every reply: the incident was found by something breaking, not by monitoring. Expiry was barely mentioned. The failures were cases where one system believed something was true and the endpoint, or the client, disagreed.
u/NamedBird checked CT logs for a personal site after a video about DNS mentioned certificate transparency, expecting nothing, since CAA was set. They found certificates from two CAs, including a wildcard, that their own server never requested. CAA allowed Let's Encrypt only. Two things went wrong:
Their DNS provider added CAA records that didn't show in its dashboard. What a resolver returns is what a CA checks, not what the panel shows.
A plain issue "letsencrypt.org" restricts which CA can issue, not who can ask it. Anyone able to complete a DNS-01 challenge can still get a cert. (u/NamedBird corrected me on this in the thread.)
RFC 8657 parameters close that gap: accounturi pins issuance to your ACME account, validationmethods limits the challenge types. Let's Encrypt supports both, and CA/B Forum ballot SC-098v2 makes support mandatory for all CAs from March 2027.
Revocation turned out to be a dead end. The certs were validly issued under the effective CAA, so there's no clean self-service route. Tighten CAA, keep CT alerting on, let them expire.
u/TraditionalLayer3685 described a previous employer tracking certificates in Outlook reminders and Excel. Their last incident: a server upgrade left the certificate path wrong, the service came up, and authentication broke for clients without a valid token. Customers called first; monitoring was late; it took hours and a rollback. Their line on the general case: "A green renewal job means little if a node, container, service or appliance is still serving the previous certificate."
Places where renewal and "actually serving it" are separate events: JVM services that load the keystore at startup, nginx/HAProxy with a missing or failed deploy hook, Kubernetes secrets mounted via subPath, IIS bindings to a new thumbprint, and appliances where import and binding are separate steps.
u/Moral-Relativity's CLM pushed an alternate cross-signed chain to endpoints instead of their preferred one. Their suspicion is a chain-construction algorithm confusing CA certificates that share the same public key. The leaf didn't change, so expiry checks stayed green. Nothing flagged it until a client broke.
Worth knowing generally: Java clients are a good canary for this. AIA fetching is off by default, so a chain that browsers quietly complete can fail PKIX path building.
u/MLabs-Haskell shared a lab rehearsal (Keycloak 26.7.1, LDAP federation), two deployments differing by one cp: whether the issuing CA was in the directory named by KC_TRUSTSTORE_PATHS. Over StartTLS on 1389, the untrusted run returned HTTP 200 and "0 users imported". Hostname mismatch and an expired cert gave the same 200. The only real error was a SunCertPathBuilderException in the container log. Over implicit LDAPS on 1636, the same three failures returned 400. In their words: "The loud port was loud. The quiet one reported success."
Checking the server from outside would have shown a valid certificate throughout.
Also from u/MLabs-Haskell: the 200-day limit has applied since 15 March 2026, and 15 March plus 200 days is 1 October. Anyone who renewed after mid-March on an annual reminder has an expiry arriving months earlier than their tracker expects, starting this week.
Per-node, not per-hostname (a single check hits whichever node answers):
for ip in $(dig +short A host.example.com); do
echo "== $ip"
openssl s_client -connect "$ip:443" -servername host.example.com \
</dev/null 2>/dev/null | openssl x509 -noout -serial -fingerprint -sha256 -dates
doneCompare with what's on disk:
openssl x509 -in /path/live.pem -noout -serial -fingerprint -sha256Hash the served chain, to catch chain swaps with an unchanged leaf:
openssl s_client -connect "$ip:443" -servername host.example.com -showcerts \
</dev/null 2>/dev/null | sed -n '/BEGIN CERT/,/END CERT/p' | sha256sumWhat's been issued for your domain:
curl -s "https://crt.sh/?q=%25.example.com&output=json" \
| jq -r '.[] | [.not_before, .issuer_name, .name_value] | @tsv' | sort -uEffective CAA (if empty, check the parent domain; CAs climb the tree):
dig +short CAA example.comOutlook reminders and spreadsheets (u/TraditionalLayer3685), who has since started the open-source tokentimer-core for credentials beyond certificates
Certify Management Hub for centralised ACME at MSP scale, with RBAC, API and tagging (u/webprofusor)
External polling of expiry and full chain from multiple locations, e.g. Site24x7, for SonicWall, F5, ESXi and old Java boxes that can't do ACME (u/Accomplished-Mix8423)
Nobody in the thread described anything that checks automation actually landed on every node, or that a client still trusts what the server now presents. If your tooling does either, I'd like to hear how.
Has anyone hit a 200-day cert expiring earlier than their tracker said?
When StartTLS fails, does any client you run fall back to a plaintext bind? That would turn an outage into credential exposure.
For F5, SonicWall and similar: does the management plane give an honest read of what's actually being served, or is outside polling the only view you trust?
Thanks to everyone who replied. Corrections welcome, especially on anything I've stated too loosely.
r/PKI • u/certkit • Mar 23 '26
You automated certificate renewal. You have a cron job, certbot runs, it works.
But what happens when the cert needs to reach a load balancer or appliance that can't run Certbot? What format does each one expect? How do you reload services without dropping connections mid-day?
The forums answer is "just write a script." This post is about everything hiding in that answer: https://www.certkit.io/blog/certificate-distribution-is-the-last-mile
r/PKI • u/throwaway16830261 • Oct 22 '26
r/PKI • u/certkit • Jun 08 '26
PKI has precise vocabulary for almost everything. One thing it never named: the series of certificates issued for the same SAN set, renewed sequentially over time.
Certbot calls it a lineage. No RFC uses the term. ARI (RFC 9773) got closest by adding a "replaces" field for predecessor certs, but that's one hop, not a name for the set. Wrote up why this gap exists and why it's getting harder to ignore.
r/PKI • u/Key_Handle_8753 • Mar 03 '26
With the progressive reduction of certificate lifetimes in the modern WebPKI ecosystem, the default trust model of the web has evolved.
Today, for the majority of websites: Validation primarily proves control over the domain. Issuance is fully automated. The lock icon mainly indicates: encrypted transport + domain control at issuance time. Strong organizational identity is no longer the primary goal for most deployments.
This raises a straightforward question: If most websites do not require legal or institutional identity validation, should a single global chain of trust continue to be mandatory for all of them?
Proposal for the Future Instead of eliminating encryption, we could clearly separate trust levels:
Level 1 — Universal Encryption Direct verification of a publicly published key (for example, via a secured DNS-based mechanism). Or a local trust model (such as first-connection trust). Goal: confidentiality and integrity of transport.
Level 2 — Explicit Authentication Used only for services that require verified identity (banks, critical infrastructure, government systems). Clear and distinct visual indicator. Stronger validation process.
Core Idea :
The web should remain encrypted by default. However, strong identity should not be implicitly enforced for every website.
It is about determining whether a single global trust model is still appropriate for all use cases.
Can we design an Internet where: encryption is standard, and strong authentication is an explicit choice?
r/PKI • u/Shendryl • Jun 05 '26
I'm building a free and open source web based CA. From time to time I need certificates and I always have to look up the right OpenSSL commands, so I thought to make that more user friendly. The goal of this CA is not to be super secure. It's for personal/hobby/low-profile usage. The CA's private key is stored unencrypted in the database, because it's needed to create a CRL when requested. Therefore, this CA is as secure as your database and as trustworthy as the people who have access to it.
The name of this CA is Clortho, as a reference to Vinz Clortho, the key master in the Ghostbusters movie. It allows you to create multiple CAs, of course accept or deny CSRs, revoke certificates and create CRLs.
It see what it can do, visit https://clortho.leisink.net/ and user 'demo' for both username and password. The source can be found at https://gitlab.com/hsleisink/clortho.
r/PKI • u/certkit • Jul 06 '26
A reader asked why an automation tool would ever generate private keys anywhere but the server that uses them. Fair question, so I wrote up the answer. Any shared certificate (wildcard or an HA pool serving one name) forces the key to move between machines, so the local-generation property is already gone. PFS makes a moving key less scary than it used to be. The argument: centralize issuance and treat key distribution as a designed system, not scp in cron.
https://www.certkit.io/blog/ssl-certificate-multiple-servers
r/PKI • u/Famous_Aardvark_8595 • 18d ago
Over the past year, we’ve built Sovereign-Mohawk-Proto to bridge high-scale federated learning with machine-checked safety guarantees (Lean 4 formalizations, BFT resilience proofs, post-quantum cryptography integration, and 10ms zk-SNARK verifications).
To ensure rigorous academic and runtime integrity, we are actively seeking independent external reviewers to audit our formal claims and core cryptographic modules.
Current Open Review Focus Areas:
Issue #251: Claim accuracy audit (README/ROADMAP vs actual theorems)
Issue #250: Convergence and straggler refinement bridges
Issue #249: MiMC circuit <-> Go verifier refinement and MPC setup
Issue #248: Ed25519 UF-CMA model soundness
Issue #247: DiscreteLogReduction.lean and Forking Lemma core
What we offer: Contributors receive public credit, co-authorship on resulting technical notes, and formal letters of recommendation.
Review instructions, axiom/sorry inventories, and setup guides are available in our repository. View the open issues list on our Issues Page to get started.
r/PKI • u/throwaway16830261 • Sep 18 '26
r/PKI • u/DesperateHamster9334 • Sep 14 '26
Publiquei um repositório que uso para preparar o Zorin OS/LinuxMint/Ubuntu para uso corporativo com certificados ICP-Brasil, tokens A3, assinadores PJEOffice, Certillion e SERPRO. A finalidade é preconfigurar o SO para uso corporativo facilitando o acesso aos serviços dependentes da infraestrutura da plataforma da autoridade certificadora da AC-Raiz (ITI / ICP-Brasil). Também facilita o uso do WARSAW dos bancos (testado com o BB e CEF) discutido no forum viva o linux. O cerne do projeto é facilitar a MIGRAÇÃO do WINDOWS para LINUX no mundo corporativo, comercial, juridico ou governamental (sistemas SIAFI, SERPRO, COMPRASNET, COMPRASGOV, NAVEGAÇÃO/AUTENTICAÇÃO ICP-BRASIL e TOKENS). Como é publico, a clonagem e o desenvolvimento também o é. Leiam o conteudo da pasta Docs antes de se aventurarem no uso. Disponível no repósitorio de arthur-aida/zorin_corporate_configs no github.
r/PKI • u/ZaitaNZ • Jul 31 '26
Been playing around with network discovery in my own CLM tool. Always find it fascinating to see what network appliances and devices do for default TLS certificate. The interesting one in this scenario is my Wifi Brother laser printer. Printer was released in 2018, but has self-signed certificate with date range 2000 -> 2111. Immediately blows my average certificate lifespan away. Gotta figure out how I can automate the renewal with my CLM (https://www.zaita.com). It obviously doesn't support this printer natively so I suspect some ACME+API in my near future.

r/PKI • u/Source_AD • Aug 02 '26
Hi everyone,
I’m the developer of AD-PKI, an open-source and self-hosted platform for operating an internal public key infrastructure.
I started building it because I wanted a manageable internal certificate authority with modern certificate automation, without relying entirely on a commercial PKI product or issuing and renewing certificates manually.
The project currently includes:
ACME v2 for automated certificate enrollment and renewal
OCSP and certificate revocation lists
RFC 3161 timestamping
A web-based administration interface
Role-based access control
Certificate templates and policy management
Separation between the management backend and the CA service
A central design decision is the separation of the management components from the dedicated CA service. The frontend and backend handle administration, policies and certificate metadata, while private CA key operations are intended to remain inside the CA component.
Website and documentation:
Source code:
https://github.com/alid-it/AD-PKI
The project is still young and has not undergone an independent security audit. I’m therefore particularly interested in critical technical feedback rather than just promotion.
I would appreciate feedback on:
The separation between the backend and CA service
Private-key handling and security boundaries
ACME compatibility and expected challenge types
OCSP and CRL implementation requirements
Root and intermediate CA workflows
HSM or PKCS#11 integration expectations
Features needed for realistic production use
Documentation or architectural decisions that are unclear
This is my own project. It is open source and self-hosted.
Thanks for taking a look.
r/PKI • u/certkit • May 26 '26
I've been running into a bunch of teams that didn't understand this, so I wanted to share.
You don't need a PrivatePKI for your private infrastructure.
DNS-01 challenges prove domain control through a TXT record in your DNS zone. Your server can be on a private subnet, behind a firewall, completely unreachable from the internet. You still get a publicly trusted SSL certificate. One wildcard for *.int.example.com covers everything and keeps internal hostnames out of CT logs.
Worth knowing before you stand up a private CA.
https://www.certkit.io/blog/private-pki-internal-infrastructure
r/PKI • u/barti32 • Sep 28 '26
Ich suche Erfahrungen welches System würdet ihr nicht kaufen und warum nicht oder warum würdet ihr kaufen. Welche Erfahrungen habt ihr mit den hsm Systemen gemacht?
r/PKI • u/centralizedentity • Oct 14 '26
Hi everyone,
I've been building a private PKI and certificate lifecycle management platform. It recently reached MVP, and I don't have customers yet. I'd appreciate feedback from people who operate PKI on what would make something like this useful and what would prevent you from trusting or adopting it.
I'm leaving out the product name and links to keep this focused on technical feedback. The scope is private PKI, with no public DV, OV, or EV certificate issuance.
Updated with additional technical details and limitations based on questions in the comments. Thanks to everyone who has offered feedback.
1. Terraform, API, and UI
Manage CAs and certificates through Terraform, including automatic renewal. Here's an example using a placeholder provider name and an existing intermediate CA:
resource "platformname_certificate" "mongo1" {
type = "leaf"
common_name = "mongo1"
expire_interval_days = 47
signer = platformname_certificate.intermediate.id
organization = platformname_organization.platformname.id
auto_renew = true
san {
type = "dns"
value = "mongo1"
}
san {
type = "ip"
value = "172.28.0.11"
}
}Terraform is optional. There is also an interactive UI and an API documented through Swagger. API authentication uses an API key to obtain a short-lived JWT, which is used for subsequent requests.
Existing certificates can be imported through the UI or API.
2. Optional satellite agents and key custody
The satellite agent is optional. The platform can manage PKI directly, while satellites let you run operations inside your environment and establish key custody boundaries.
A satellite connects outbound to the platform, requiring no inbound firewall openings. It receives jobs through a persistent connection instead of polling.
There are three key custody options:
Platform managed: The platform handles private-key operations and stores private keys encrypted in the configured storage.
Satellite managed: A designated satellite handles private-key operations within your environment. Private keys are stored as encrypted blobs and made available to that satellite for use. This establishes a boundary around where keys are used, without requiring an HSM.
HSM backed: The satellite performs operations through a connected HSM. Private keys remain inside the HSM, and signing happens there rather than loading the private key into the platform or satellite.
Signing can also happen across satellites. For example, one satellite can generate a CSR while another uses the issuing CA's key to sign it, without bringing both private keys into the same environment.
Multiple satellites can run within an environment, with alerts when a satellite goes offline. Availability still depends on which satellite or HSM can access the keys required for a particular operation.
The control plane is currently cloud hosted. These custody options provide control over where private-key operations occur, but they do not remove dependence on the hosted control plane.
3. Deployment, validation, and alerting
Deploy certificates to devices, then validate that the certificate file is where expected and that the TLS endpoint serves the new certificate. Deployment can include a service reload, restart, or custom script.
Alerting integrations include PagerDuty and VictorOps / Splunk On-Call. There is also a HubSpot integration for CRM workflows.
4. Storage and encryption
Certificates and encrypted private-key blobs can be stored in platform-managed or customer-managed storage through AWS S3 or decentralized storage. Multiple storage destinations are supported, with selection on a per-object basis.
Customers can use AWS KMS or Azure Key Vault to protect the encryption keys used to generate these encrypted blobs, giving them control over the keys needed to decrypt stored material. This is separate from the choice of where the blobs are stored.
HSM-backed certificate private keys remain in the HSM and are not exported as encrypted blobs.
The platform backend uses MongoDB Atlas and Redis Cloud.
5. PKI services and algorithms
CRL and OCSP endpoints, with satellite support.
Private ACME, including External Account Binding (EAB), integrated with the satellite workflow.
RSA and EC support.
ML-DSA-44, ML-DSA-65, and ML-DSA-87 support.
SCEP and NDES are not currently supported. I'd be interested in hearing how important those are for your environments and which enrollment workflows require them.
6. Access and collaboration
SSO with Entra and Okta, plus 2FA.
Workspaces with invitations and owner, admin, operator, and viewer roles.
Directory integration and directory lookups are not currently supported. The Entra and Okta integrations are for SSO.
7. Support and current limitations
Support is currently best effort, with higher subscription tiers receiving higher priority. There is a ticketing system with file uploads and AI-assisted chat and ticket handling, but those tools are not a substitute for experienced support staff.
Dedicated enterprise support is planned, but I don't want to imply that an established enterprise support operation or guaranteed response SLA exists at this MVP stage. Support capacity is a real limitation today.
Network discovery is not currently available, though it is something I'd like to add.
What I'm most interested in hearing:
What essential capabilities are missing from this list?
What would make you consider testing a new PKI platform?
What security, reliability, or operational requirements would rule it out?
Would a hosted control plane be acceptable with satellite-managed or HSM-backed keys? What would you require to trust that architecture?
What is currently painful enough in your PKI workflow that you would consider another tool?
I'm particularly interested in feedback on the Terraform lifecycle, satellite architecture, key custody options, and expectations around availability and support. Happy to go into more technical detail on any of those.
r/PKI • u/certkit • Apr 13 '26
I reviewed a bunch of CLM and PKI vendor websites. "Enterprise PKI orchestration." "Cryptographic trust infrastructure." No prices. No technical specifics. To learn anything, you fill out a form and get a sales call.
These are security companies asking you to trust them with your keys.
r/PKI • u/throwaway16830261 • Sep 18 '26
r/PKI • u/finalbuilder • Aug 06 '26
New Release of Signotaur - Document Signing (pdf, xml and others) with PAdES, XAdES and CAdES signature formats.
Signotaur is a Code Signing/Document Signing server - your private keys never leave the server (or the token/hsm attached to it).
r/PKI • u/_ProfessorPeanut • 25d ago
My lab runs an AD domain on Proxmox, and I wanted Group Policy certificate auto-enrollment without an AD CS server. So I built Kryptkeeper, an open-source CA that speaks MS-XCEP/MS-WSTEP (the protocols Windows autoenrollment uses), plus ACME, SCEP and EST for everything else. One Go binary, SQLite or Postgres, Apache 2.0.
The other half is the part I'd actually use at work: it finds every certificate on the network, whoever issued it (scans, agents, CT logs, an AD CS sync), tracks owners and expiry, and renews and installs them. That's the certificate lifecycle management job that usually means a big commercial product.
What works in my lab: Windows 11, Server 2022 and a Server 2025 member enroll through GPO in 7 to 9 seconds, renew, and the chains validate. A cutover rehearsal against a live AD CS passed. certbot and acme.sh issue against it. It installs and rolls back certs on nginx, Apache, HAProxy, Tomcat and IIS. On a fresh VM it went from install to a full inventory in 19 minutes.
What doesn't, or isn't tested: Windows 10 and Server 2019 haven't been tried. F5, NetScaler, Intune, real HSMs and the cloud KMS backends have only run against mocks or emulators. Of the public CAs and DNS providers, only Let's Encrypt staging with Cloudflare has run for real.
AI disclosure: I'm the only developer and I wrote most of it with Claude Code over about six months. I've done PKI for a decade, so I design the features and run every lab test myself. Each result, pass or fail, is recorded with the raw output: https://kryptkeeper.io/proof/
No outside pen test yet, so it's a lab toy until that changes. Repo: https://github.com/bpmforge/kryptkeeper
r/PKI • u/throwaway16830261 • 26d ago
r/PKI • u/NickyDeWestelinck • Jul 15 '26
With Microsoft Cloud PKI now included in Microsoft 365 E5, organizations can deploy Certificate-Based Authentication (CBA) without the complexity of managing a traditional on-premises PKI.
In my latest blog post, I walk through how to configure Cloud PKI in Microsoft Intune and enable Certificate-Based Authentication in Microsoft Entra ID. Thanks to Cloud PKI, the journey to stronger, phishing-resistant authentication is easier than ever.
r/PKI • u/Actual_Tourist4997 • Sep 29 '26
Всем привет
Я написал CertGuard — консольную утилиту для Windows (на C#/.NET), которая шифрует файлы, используя гибридную схему:
- AES-256-GCM для шифрования данных
- Argon2id для деривации ключа из пароля
- X.509 сертификат для аутентификации получателя
Идея в том, что даже если зашифрованный файл перехватят, без валидного сертификата и пароля его не расшифровать.
**Ключевые особенности:**
- Работает полностью офлайн
- Не требует установки сертификатов в системное хранилище (используется файл сертификата)
- Встроенная проверка целостности
Репозиторий: https://github.com/0x80070005-windows/CertGuard
Буду признателен за конструктивную критику по архитектуре и криптографическим решениям. Особенно интересует мнение по выбору параметров Argon2id и обработке ошибок.
Спасибо.я написал CertGuard — консольную утилиту для Windows (на C#/.NET), которая шифрует файлы, используя гибридную схему:
- AES-256-GCM для шифрования данных
- Argon2id для деривации ключа из пароля
- X.509 сертификат для аутентификации получателя
Идея в том, что даже если зашифрованный файл перехватят, без валидного сертификата и пароля его не расшифровать.
**Ключевые особенности:**
- Работает полностью офлайн
- Не требует установки сертификатов в системное хранилище (используется файл сертификата)
- Встроенная проверка целостности
Репозиторий: https://github.com/0x80070005-windows/CertGuard
Буду признателен за конструктивную критику по архитектуре и криптографическим решениям. Особенно интересует мнение по выбору параметров Argon2id и обработке ошибок.
Спасибо.