<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Davide V. on Medium]]></title>
        <description><![CDATA[Stories by Davide V. on Medium]]></description>
        <link>https://medium.com/@davide.vitali?source=rss-249510f2f0ec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Davide V. on Medium</title>
            <link>https://medium.com/@davide.vitali?source=rss-249510f2f0ec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 10:24:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@davide.vitali/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why FAPI 2.0 and DPoP Are the Future of Corporate Open Banking]]></title>
            <link>https://medium.com/@davide.vitali/why-fapi-2-0-and-dpop-are-the-future-of-corporate-open-banking-08b5f657452a?source=rss-249510f2f0ec------2</link>
            <guid isPermaLink="false">https://medium.com/p/08b5f657452a</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[tlm]]></category>
            <category><![CDATA[fapi]]></category>
            <category><![CDATA[open-banking]]></category>
            <category><![CDATA[banks]]></category>
            <dc:creator><![CDATA[Davide V.]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 08:21:47 GMT</pubDate>
            <atom:updated>2026-11-24T08:21:47.593Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Moving enterprise B2B banking security from traditional transport pipes (mTLS) to application-layer cryptography using RFC 7523, RFC 9449, and the OpenID FAPI 2.0 Security Profile.</blockquote><p>When Open Banking first emerged under PSD2 and UK Open Banking regulations, the primary focus was on retail, consumer-to-business (C2B) use cases: an individual granting a FinTech app permission to view checking accounts or make payments through browser redirects and mobile biometric handshakes.</p><p>However, the real volume in financial services resides in <strong>Corporate and Wholesale Banking</strong>:</p><ul><li>Multi-million-euro automated treasury liquidity sweeps</li><li>High-volume automated bulk payroll processing (SEPA Instant / ISO 20022)</li><li>Dynamic FX hedging executed directly by ERP systems (SAP, Oracle, NetSuite)</li></ul><p>In these <strong>Server-to-Server (B2B)</strong> architectures, there is no end-user sitting in front of a screen to approve authorizations or respond to Push OTPs. Machines communicate autonomously with bank gateways. Typically, an ERP system needs to communicate with one or more financial institutions to exchange payment, cash management, and liquidity information.</p><p>In traditional OAuth 2.0 (RFC 6749 Client Credentials Grant), this interaction relies on static shared secrets ( client_id + client_secret) returning <strong>Bearer tokens</strong>. In high-value banking, this model introduces fatal vulnerabilities:</p><ul><li><strong>Token Exfiltration</strong>: If a Bearer token leaks into logs, APM systems, or memory dumps, an attacker can replay it from anywhere without restrictions.</li><li><strong>Shared Secret Sprawl</strong>: Static secrets inevitably end up in source code, CI/CD pipelines, or configuration files.</li><li><strong>Lack of Cryptographic Non-Repudiation</strong>: A shared secret cannot legally prove who originated a specific high-value transaction.</li></ul><p>To prevent credential leakage and enforce sender-constraining, banking standards initially leaned on <strong>Mutual TLS (mTLS)</strong> (RFC 8705).</p><p>While cryptographically robust, mTLS imposes severe operational hurdles in modern cloud environments:</p><ul><li>In modern cloud architectures (Kubernetes, AWS ALB, Cloudflare, Envoy, Kong, Apigee, …), TLS almost always terminates at edge ingress controllers. Passing client certificate details downstream requires brittle header injection ( X-Forwarded-Client-Cert), complex certificate passthrough rules, and customized network pipelines.</li><li>Historically, enterprises simplified certificate management by deploying certificates with dual Extended Key Usage (EKU) flags: both <strong>Server Authentication</strong> ( serverAuth) and <strong>Client Authentication</strong> ( clientAuth). Under recent <strong>CA/Browser Forum Baseline Requirements</strong>, public Certificate Authorities (CAs) are prohibited from issuing dual-EKU certificates. Furthermore, public <strong>certificate validity is being aggressively shortened</strong> (moving toward 90–100 day lifecycles). Organizations are forced to maintain separate, complex PKI pipelines, significantly increasing certificate rotation overhead and the risk of costly production outages.</li></ul><p>The <a href="https://openid.net/specs/fapi-security-profile-2_0-final.html"><strong>Financial-Grade API (FAPI 2.0)</strong></a> Security Profile by the OpenID Foundation resolves this architectural dilemma. Instead of tethering security to the network transport pipe (Layer 4/TLS), FAPI 2.0 lifts authentication and sender-constraining directly into the <strong>Application Layer (Layer 7)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*T6vZHCqthZyf6z0f.png" /></figure><ol><li><a href="https://datatracker.ietf.org/doc/html/rfc7523"><strong>RFC 7523 (</strong></a><a href="https://datatracker.ietf.org/doc/html/rfc7523"><strong>private_key_jwt) — Client Authentication</strong></a>: Shared client secrets are completely eliminated. The ERP authenticates at/oauth/token by digitally signing an assertion JWT with its private Elliptic Curve key (ES256).</li><li><a href="https://datatracker.ietf.org/doc/html/rfc9449"><strong>RFC 9449 — DPoP — Demonstrating Proof-of-Possession</strong></a>: Access tokens are sender-constrained rather than Bearer tokens. When requesting a token, the client presents an ephemeral DPoP public key. The Authorization Server binds the SHA-256 thumbprint of that key into the token’s payload (cnf: { jkt: &quot;&lt;thumbprint&gt;&quot; }). On every API call, the client generates a fresh DPoP proof. The bank verifies that the presenter holds the private key matching cnf.jkt and checks the Access Token Hash (ath). Even if exfiltrated, <strong>the token is completely useless to an attacker</strong>.</li><li><a href="https://datatracker.ietf.org/doc/html/rfc9449"><strong>RFC 9449 — DPoP Nonce Negotiation</strong>:</a> The bank gateway can challenge requests with anHTTP 400 use_dpop_nonce error. The client immediately refreshes its proof with the server-supplied nonce, preventing offline pre-computed signatures and replay attacks.</li></ol><p>While standard OAuth 2.0 / RFC 7523 allows clients to authenticate using raw public keys pre-registered out-of-band (e.g., uploading JWKS files between administrators), <strong>in enterprise wholesale banking, manual out-of-band key exchange is an operational and governance anti-pattern</strong>:</p><ul><li><strong>Scalability Bottleneck</strong>: Banks cannot securely manage, exchange, and rotate raw public keys with thousands of corporate clients through ad-hoc manual channels.</li><li><strong>Lack of Centralized Revocation</strong>: If a corporate private key is compromised, static JWKS registrations lack automated revocation pipelines (like CRLs or OCSP).</li><li><strong>Zero Legal Non-Repudiation</strong>: A raw cryptographic keypair proves possession of math, but legally fails to prove the regulatory corporate identity of the entity executing a €10,000,000 payroll batch.</li></ul><p>To solve this, enterprise banking best practice (and regulatory frameworks like <strong>eIDAS</strong> and <strong>PSD2/PSD3</strong>) combines RFC 7523 with an <strong>X.509 Qualified Electronic Seal Certificate (QSealC)</strong> via the <strong>x5c JWS header (RFC 7515 §4.1.6)</strong>:</p><ol><li>Corporate ERP <strong>signs client_assertion JWT with its QSealC key</strong>.</li><li>ERP embeds the certificate chain in the JWT header:{ &quot;alg&quot;: &quot;ES256&quot;, &quot;typ&quot;: &quot;JWT&quot;, &quot;x5c&quot;: [&quot;&lt;base64-der-cert&gt;&quot;, ...] }</li><li>Bank extracts public key dynamically from x5c.</li><li>Bank validates trust chain against EU Qualified Trust List (QTSP).</li><li>Bank verifies revocation in real time via OCSP/CRL.</li><li>Instant onboarding: Zero manual key exchange required out-of-band!</li></ol><p>By leveraging x5c, the corporate client proves its legal identity and achieves non-repudiation (under <strong>eIDAS Article 35</strong>) directly at Layer 7. Meanwhile, <strong>DPoP</strong> uses lightweight, ephemeral session keys to protect the access token itself.</p><h3>A Full Standalone server for Demo</h3><p>To explore a complete, runnable reference implementation of this architecture built with <strong>zero external dependencies</strong> (using native Node.js node:crypto and node:http), including an interactive dark-mode dashboard and a ready-to-run Bruno API collection:</p><p>👉 <strong>GitHub Repository</strong>: <a href="https://github.com/dvitali/fapi2.0-demo">https://github.com/dvitali/fapi2.0-demo</a></p><p>The repository includes:</p><ul><li>An Authorization Server issuing RFC 9449 sender-constrained tokens.</li><li>A Wholesale Corporate Bank Gateway executing 7-point cryptographic security audits.</li><li>Automated attack simulators demonstrating how stolen Bearer tokens and rogue keys are blocked in real time.</li><li>An 8-step Bruno collection for end-to-end testing with pre-request cryptographic scripts.</li></ul><h4>Architecture Comparison: mTLS vs. FAPI 2.0 DPoP</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VcSY1L71XJ8yEsvFxeZHLQ.png" /></figure><h4>Demystifying Certificates in Banking (QSealC vs. QWAC vs. Standard SSL vs. DPoP)</h4><p>In European Open Banking and corporate treasury architectures (under <strong>eIDAS Regulation EU 910/2014</strong>, <strong>ETSI TS 119 495</strong>, and <strong>Berlin Group openFinance</strong>), confusion often arises regarding the distinct roles of <strong>QWAC</strong>, <strong>QSealC</strong>, <strong>Standard SSL/TLS</strong>, and <strong>DPoP</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*F_anOH5P9pNVldi2n96KMA.png" /></figure><h4>Comparative Architecture Matrix</h4><p>Feature Standard SSL / TLSQWAC (Qualified Web Auth)QSealC (Qualified Electronic Seal)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*mWmf50uV54ZVW9hpeZ_8Zw.png" /></figure><h4>Transport Layer (QWAC) vs. Application Layer (QSealC)</h4><p>The critical limitation of relying solely on <strong>QWAC</strong> is <strong>TLS termination at enterprise perimeters</strong>:</p><ol><li>When an ERP connects via mTLS, the cryptographic protection ceases at the bank’s external reverse proxy or CDN edge.</li><li>Between the gateway and core accounting systems, the payload travels through internal microservices and message queues.</li><li>If an internal component or rogue process tampers with payment details, the bank has <strong>no cryptographic evidence</strong> proving whether data was modified in flight or arrived corrupted from the client.</li><li><strong>QSealC solves this at Layer 7</strong>: By signing the payload directly with a corporate electronic seal (embedded via x5c or signed XML/JSON), the signature remains intact end-to-end and can be archived in the bank&#39;s permanent audit ledger.</li></ol><h4>How They Fit Together in FAPI 2.0 B2B Banking</h4><p>In a modern corporate banking architecture:</p><ul><li><strong>Client Identity at </strong><strong>/oauth/token (RFC 7523 + QSealC)</strong>: The corporate ERP signs its assertion using its enterprise certificate / QSealC in x5c. The bank&#39;s Authorization Server verifies corporate identity without shared secrets.</li><li><strong>Access Token Protection (DPoP)</strong>: The ERP manages a lightweight, ephemeral EC keypair (P-256) to sign DPoP proofs. The token is bound to cnf.jkt. DPoP does <em>not</em> require complex CA certificates; it is an agile Layer 7 mechanism dedicated to eliminating Bearer token theft.</li><li><strong>Corporate Seal Authorization</strong>: For high-volume headless transactions (such as a €1,500,000 payroll batch), interactive end-user SCA is unfeasible. Under PSD2 RTS Article 32, a qualified corporate electronic seal (QSealC) serves as the regulatory-compliant equivalent of Strong Customer Authentication.</li></ul><h4>Conclusion: The Path Forward for B2B Banking</h4><p>The era of relying <strong>exclusively</strong> on transport-level mutual TLS for enterprise financial services is drawing to a close. As cloud-native architectures dominate and certificate validity windows shrink, <strong>FAPI 2.0 + DPoP</strong> delivers the optimal balance:</p><ul><li><strong>Uncompromising cryptographic security</strong> demanded by institutional financial systems.</li><li><strong>Operational resilience</strong> that cloud engineers, DevOps teams, and corporate ERP integrators can seamlessly deploy across standard network infrastructure, WAFs, and API gateways.</li></ul><p>If you are architecting modern B2B Open Banking APIs, corporate treasury portals, or ERP integrations, make FAPI 2.0 your architectural baseline today and please comment.</p><h4>Resources &amp; Further Reading</h4><ul><li>Demo Implementation Repository: <a href="https://github.com/dvitali/fapi2.0-demo">github.com/dvitali/fapi2.0-demo</a></li><li>OpenID Foundation: <a href="https://openid.net/specs/fapi-2_0-security-profile.html">FAPI 2.0 Security Profile Specifications</a></li><li>IETF RFC 9449: <a href="https://datatracker.ietf.org/doc/html/rfc9449">OAuth 2.0 Demonstrating Proof-of-Possession (DPoP)</a></li><li>IETF RFC 7523: <a href="https://datatracker.ietf.org/doc/html/rfc7523">JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication</a></li><li>ETSI TS 119 495: <a href="https://www.etsi.org/deliver/etsi_ts/119400_119499/119495/">Qualified Certificate Profiles and TSP Accreditations under PSD2</a></li><li>eIDAS Regulation (EU) No 910/2014: <a href="https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=uriserv%3AOJ.L_.2014.257.01.0073.01.ENG">Trust Services for Electronic Transactions in the Internal Market</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=08b5f657452a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>