Raw Public Keys are public keys used directly in TLS without wrapping them in an X.509 certificate. They let a peer authenticate by presenting a key object instead of a full certificate chain, reducing certificate-management overhead where a PKI is not needed.
What Raw Public Keys Are Used For
Raw public keys let TLS authenticate a peer with a bare key object rather than a full X.509 certificate chain. That makes them useful when the trust relationship is narrow, the deployment is controlled, and the overhead of certificate issuance, validation, and renewal would add complexity without adding meaningful assurance.
They are best understood as an alternative trust format, not a different encryption primitive. The key still needs to be held securely, validated by the application, and mapped to the correct peer, but the trust anchor is lighter than a conventional PKI chain.
How Raw Public Keys Change TLS Trust
The main difference is how identity is expressed. With certificate-based TLS, a peer proves itself through a certificate chain that can be validated against a CA hierarchy. With raw public keys, the application relies on the expected public key directly, so the trust decision shifts from certificate path validation to explicit key pinning or equivalent out-of-band trust establishment.
That shift can simplify constrained systems, internal protocols, and closed ecosystems where full PKI management would be disproportionate. It also removes certificate metadata such as subject names, intermediate CAs, and revocation processing from the immediate handshake path.
Because the trust object is simpler, teams sometimes assume the security problem is simpler too. In practice, raw public keys only work well when the expected key is already known, distributed safely, and updated through a controlled process.
Where Raw Public Keys Fit in Protocol Design
Raw public keys are a protocol design choice for environments that need direct peer authentication but do not need the broader governance model of public key infrastructure. They fit naturally in tightly scoped device, service, or appliance communications where the application can hold an allowlist of trusted keys and the ecosystem does not require third-party certificate interoperability.
The approach can reduce operational friction, especially in embedded or closed environments, but it narrows portability. A peer that expects certificate-based trust may not interoperate cleanly with one that expects a raw key object, so the choice affects onboarding, rotation, and external compatibility.
For teams comparing key-based trust options, Cryptography Basics Guide gives the broader cryptographic context, while PKI Basics Guide helps explain what raw public keys deliberately avoid.
Operational Trade-offs and Failure Modes
The security trade-off is not “more secure” versus “less secure”, but “less operational machinery” versus “less delegated assurance”. Raw public keys remove CA dependency, but they also remove the ecosystem benefits of certificate issuance workflows, revocation infrastructure, and established validation conventions.
The most common failure modes are stale key trust, weak distribution discipline, and ad hoc rotation. If a public key changes unexpectedly, peers can break. If a key is replaced without a verified change process, impersonation risk rises. If teams treat the key as a static configuration item, they can lose the very agility they expected to gain.
For organizations deciding whether a certificate chain is worth the overhead, Certificate Pinning is a useful comparison point because it highlights the same trust-by-known-key pattern, but in a more familiar TLS form. Machine Identity, PKI and Certificate Lifecycle Guide shows the lifecycle burden that raw public keys are often chosen to reduce.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-53 Rev 5, NIST SP 800-57 and NIST Zero Trust (SP 800-207) set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | IA-9 — Identification and Authentication (Service Organizations) | Raw public keys authenticate service peers directly in TLS. |
| IA-5 — Authenticator Management | Raw public keys still need secure lifecycle handling, replacement, and protection. | |
| Recommendation — Use IA-9 to authenticate TLS peers with controlled machine or service credentials. Manage raw public keys as authenticators and rotate them through a controlled lifecycle. | ||
| NIST SP 800-57 | Key Management | The term centers on direct public-key trust and its lifecycle trade-offs. |
| Recommendation — Apply key-management discipline to distribution, rotation, and retirement of trusted public keys. | ||
| NIST Zero Trust (SP 800-207) | Zero Trust Architecture | Direct key trust supports explicit verification of peers instead of implicit network trust. |
| Recommendation — Require explicit peer verification before granting TLS trust in each connection path. | ||
| ISO/IEC 27001:2022 | A.5.15 — Access control | Raw public keys define a direct trust decision for access between peers. |
| Recommendation — Document and enforce the access decision model for peers authenticated by raw public keys. | ||
Practitioner Guidance
Why practitioners should care: Raw public keys are valuable when you want direct peer authentication without the lifecycle cost of full certificates, but they shift more responsibility into application-managed trust. The key question is whether your environment can reliably distribute, update, and verify the expected key outside the handshake itself.
What to watch for: The biggest red flag is treating raw public keys as a shortcut rather than a deliberate trust model. If the key will be hard-coded, manually copied, or rotated without a controlled rollout path, the operational risk can outweigh the simplicity benefit.
Practitioner takeaway: Use raw public keys only when the trust boundary is narrow and the key lifecycle is genuinely easier to govern than a certificate lifecycle.
Related resources from NHI Mgmt Group
- Why do private keys create more risk than public keys in enterprise PKI?
- Why do blockchain public keys create future exposure under quantum attacks?
- What breaks when generated apps rely on public backend keys without row-level security?
- Why do public API keys create more risk once AI services are enabled on the same cloud project?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org