DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
HomeNetworkingHPKP Generator

Example: HPKP Generator

A worked example, rendered from real sample data. Sign in to run the tool on your own input.

Input
YLh1dUR9y6Kja30RrAn7JKnbQG/uEtLMkBgFF2Fuihg=
SCmeBCKhCo0f51UQ0TJPSx1+MbHhJ5fg7mjnOMfS9XU=
Output
═══ HPKP is obsolete — read this first ═══
✗ Chrome removed HPKP enforcement in version 72 (2018) and Firefox followed. No current browser honours Public-Key-Pins.
✗ A wrong pin bricks your domain for the whole max-age with no way to recover — this is why the feature was withdrawn.
ℹ Use Certificate Transparency monitoring (crt.sh, Cert Spotter) to detect mis-issuance instead.
ℹ Use a CAA record to restrict which CAs may issue for your domain.
ℹ For mobile apps, pin in the app (Android Network Security Config, iOS ATS / TrustKit) where you control rollout.
ℹ Keep HSTS with a long max-age and preload — that is the header that still protects you.

═══ Generated header (for legacy systems and audits) ═══
Public-Key-Pins: pin-sha256="YLh1dUR9y6Kja30RrAn7JKnbQG/uEtLMkBgFF2Fuihg="; pin-sha256="SCmeBCKhCo0f51UQ0TJPSx1+MbHhJ5fg7mjnOMfS9XU="; max-age=5184000; includeSubDomains

─── Directives ───
Pins: 2
max-age: 5184000s (60d)
includeSubDomains: yes
Mode: enforcing
report-uri: (none)

─── Pins ───
• YLh1dUR9y6Kja30RrAn7JKnbQG/uEtLMkBgFF2Fuihg=   ← pre-computed pin
• SCmeBCKhCo0f51UQ0TJPSx1+MbHhJ5fg7mjnOMfS9XU=   ← pre-computed pin

─── Validation ───
✓ 2 pins supplied — keep at least one backup key offline and unused.
⚠ No report-uri — you get no warning before the pin starts blocking real users.
⚠ Enforcing mode. Always deploy Public-Key-Pins-Report-Only first and watch reports for weeks.

─── Modern equivalent ───
  Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
  CAA record: example.com. IN CAA 0 issue "letsencrypt.org"

About HPKP Generator

HPKP Generator preview - Networking tool

Generate HTTP Public Key Pinning headers from a certificate. Part of the DevTools Surf developer suite. Browse more tools in the Networking collection.

Use Cases

  • Generating pin headers for legacy systems still using HPKP
  • Learning about public key pinning concepts for security audits
  • Creating HPKP report-only headers for certificate monitoring
  • Studying deprecated security headers for compliance documentation

Tips

  • Extract the public key pin from your server certificate
  • Generate backup pins from your CA's intermediate certificate
  • Include a report-uri to monitor pinning violations in production

Fun Facts

  • HPKP (RFC 7469) was published in April 2015 but deprecated by Chrome in 2018 due to the risk of site operators accidentally bricking their own sites.
  • Google was the first major site to deploy public key pinning in 2011, using a proprietary mechanism before HPKP was standardized.
  • Certificate Transparency (CT) logs, proposed by Google in 2013, largely replaced HPKP as a more practical approach to preventing mis-issued certificates.

FAQ

Is HPKP still recommended?
No — HPKP (HTTP Public Key Pinning) was deprecated by Chrome in 2018 due to self-DoS risks. Certificate Transparency and Expect-CT replaced it.
Why does the tool exist?
Legacy systems and research. Some environments still use HPKP; the tool helps migrate or audit existing configurations.
What should I use instead?
Expect-CT or CAA DNS records. For mobile apps, cert pinning in the app code (more controlled than browser HPKP).
Can I test my pin?
The tool generates the header but doesn't verify against live traffic. Use openssl or curl --pinned-pubkey for runtime validation.

Related Networking Tools

IP Address LookupHTTP Status ReferenceDNS Record ExplainerWebSocket Frame DecoderPort Reference LookupMIME Type LookupCertificate DecoderUser-Agent Parser
New · Flagshipsimple REST client

REST Handler — Collections, env vars, history, cURL converter

Send requests, save collections (nested), swap environments, and convert between cURL / Collection JSON / REST Handler YAML.

Open

Popular tools

The most-used tools on DevToolsSurf, one click away.

Encoding & crypto

  • Base64 Encode
  • Base64 Decode
  • URL Encoder
  • URL Decoder
  • Hash Generator
  • JWT Decoder
  • JWT Encoder
  • UUID Generator
  • ULID Generator
  • Password Generator
  • Bcrypt Hash Tester

Converters

  • CSV to JSON
  • JSON to CSV
  • XML to JSON
  • JSON to XML
  • HTML → Markdown
  • HTML → React JSX
  • cURL to Code
  • Collection JSON → cURL
  • Swagger to Collection JSON
  • JSON → Go Struct
  • JSON → TypeScript Types

JSON & YAML

  • JSON Formatter
  • JSON Validator
  • JSON Viewer
  • JSON Minifier
  • JSON Diff
  • JSONPath Tester
  • YAML Formatter
  • YAML to JSON
  • JSON to YAML

Text & regex

  • Regex Tester
  • Text Diff
  • Case Converter
  • Word Counter
  • Markdown Preview
  • Slug Generator
  • Lorem Ipsum Generator
  • Markdown → PDF

CSS & color

  • CSS Beautifier
  • Minify CSS
  • Color Converter
  • Gradient Generator
  • Contrast Checker
  • Color Palette Generator
  • Flexbox Playground
  • Tailwind → CSS

Generators

  • QR Code Generator
  • Mock Data Generator
  • Favicon Generator
  • .gitignore Builder
  • README.md Generator
  • Dockerfile Generator
  • Sitemap Generator

API & networking

  • REST Handler
  • HTTP Header Analyzer
  • IP Address Lookup
  • CIDR Calculator
  • User-Agent Parser
  • HTTP Status Reference
  • OpenAPI Viewer

Date & time

  • Timestamp Converter
  • Timezone Converter
  • Cron Expression Parser
  • Duration Calculator
  • Age Calculator
  • Date Format Converter

Images

  • Image Converter
  • Image Resizer (Batch)
  • SVG Optimizer
  • Base64 ↔ Image
  • WebP ↔ AVIF Converter
  • Image Compressor

PDF tools

  • PDF Merger
  • PDF Splitter
  • PDF Compressor
  • Markdown → PDF
  • EPUB → PDF
  • MOBI / AZW → PDF
  • DOCX → PDF
  • HTML → PDF

Resources

  • Community feed
  • Themes marketplace
  • Pricing & credits
  • Privacy policy
  • Terms of service
  • Sitemap
  • robots.txt

Your account

  • Sign in
  • Dashboard
  • Run history
  • My profile
  • Settings
DevTools Surf logo
DevTools Surf919+ tools

Fast · privacy-first · client-side · © 2026

Home·Feed·ThemesPricing·Sign inPrivacy·Sitemap Feedback