{"id":399,"date":"2026-11-26T11:22:12","date_gmt":"2026-11-26T11:22:12","guid":{"rendered":"https:\/\/ethertrust.com\/?page_id=399"},"modified":"2026-11-26T11:22:12","modified_gmt":"2026-11-26T11:22:12","slug":"uberca-2","status":"publish","type":"page","link":"https:\/\/ethertrust.com\/index.php\/uberca-2\/","title":{"rendered":"uberCA"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Offline Outsourcing of PKI Signatures to a pNHSM Module: UberCA<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><em>The makek&ndash;extract&ndash;sign&ndash;sig architecture for protecting non-exportable private keys<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Pascal Urien &mdash; <a href=\"mailto:pascal.urien@ethertrust.com\">pascal.urien@ethertrust.com<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Abstract<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Protecting private keys is a fundamental requirement of public key infrastructures. This paper describes an offline signing architecture in which the actual private key remains confined to a security module called a pNHSM. The host uses only the genuine public key and a dummy private-key representation that allows standard PKI tools to construct a provisional object. The ASN.1 portion actually covered by the signature is then extracted, hashed, and sent to the pNHSM. The pNHSM applies the actual private key to the received digest and returns a signature, which is subsequently inserted into the final object. The architecture is based on four functions: <code>makek<\/code>, <code>extract<\/code>, the pNHSM <code>s&lt;slot&gt;<\/code> signing operation, and <code>sig<\/code>. It is particularly well suited to PKCS#10 requests and X.509 certificates, while keeping private keys outside the OpenSSL environment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Keywords:<\/strong> PKI, HSM, pNHSM, X.509, PKCS#10, OpenSSL, RSA, ECDSA, ASN.1, DER, non-exportable private key, remote signature.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">I. Introduction<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Public key infrastructures rely on the separation between a freely distributable public key and a private key whose confidentiality must be maintained throughout its lifecycle.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In a conventional software architecture, a program such as OpenSSL loads a private key directly from a file. This approach implies that the private key is accessible to the operating system and the application process. By contrast, an architecture using a separate cryptographic component seeks to maintain the following property:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Kpriv &notin; Host<\/code> (1)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The pNHSM considered in this work can generate a key pair, make its public component available, perform signing operations, and ultimately destroy the key without exposing its private component. The objective is to simplify offline PKI operations, for which the object can be constructed before its definitive signature is calculated.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">makek -&gt; OpenSSL -&gt; extract -&gt; pNHSM -&gt; sig -&gt; verify<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Fig. 1. General functional chain of the proposed method.<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">II. Structure of Signed Objects<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">A. PKCS#10 Request<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">A PKCS#10 request consists of three elements: <code>CertificationRequestInfo<\/code>, an <code>AlgorithmIdentifier<\/code>, and a <code>BIT STRING<\/code> containing the signature. The signature protects the complete DER encoding of <code>CertificationRequestInfo<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">CertificationRequest ::= SEQUENCE {\n    certificationRequestInfo,\n    signatureAlgorithm,\n    signature BIT STRING\n}<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">B. X.509 Certificate<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">An X.509 certificate has a structurally similar envelope. The signature protects the DER encoding of <code>TBSCertificate<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Certificate ::= SEQUENCE {\n    tbsCertificate,\n    signatureAlgorithm,\n    signatureValue BIT STRING\n}<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">C. Common Model<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Both formats can be abstracted as a sequence comprising a signed portion D, an algorithm identifier A, and a signature S.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>O = SEQUENCE(D, A, S)<\/code> (2)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This similarity allows signature extraction and replacement to share common functions without reconstructing the entire application-level object for each type of PKI document.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">III. General Architecture<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The architecture explicitly separates the local key representation, construction of the ASN.1 object, extraction of the signed data, the protected cryptographic operation, and final assembly.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">pNHSM --p&lt;slot&gt;--&gt; public key\n                     |\n                     v\n                   makek\n                     |\n                     v\n                   key.pem\n                     |\n                     v\n                   OpenSSL\n                     |\n                     v\n              provisional object\n                     |\n                     v\n                   extract\n                     |\n                     v\n                    HASH\n                     |\n                     v\n               pNHSM s&lt;slot&gt;\n                     |\n                     v\n                  signature\n                     |\n                     v\n                    sig\n                     |\n                     v\n                final PKI object<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Fig. 2. Offline makek&ndash;extract&ndash;pNHSM&ndash;sig workflow.<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">IV. pNHSM Interface<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">A. Communication Channel<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The pNHSM interface is accessible through a TLS 1.3 connection authenticated with a pre-shared key. The application protocol is carried as a simple command line.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo -ne \".s12$hash\\r\\n\" | \\\nopenssl s_client -quiet -connect $IP:$PORT \\\n  -servername $SEN -psk_identity $ID -psk $PSK \\\n  -tls1_3 -groups P-256 -cipher DHE \\\n  -ciphersuites TLS_AES_128_CCM_SHA256 \\\n  -no_ticket 1&gt;nsig.txt 2&gt;\/dev\/null<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In this example, the application command is <code>.s12&lt;hash&gt;<\/code>, followed by CR\/LF. The pNHSM output is redirected to a file containing the signature.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">B. Application Primitives<\/h4>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Function<\/th><\/tr><\/thead><tbody><tr><td><code>g&lt;slot&gt;<\/code><\/td><td>Generate a new key pair<\/td><\/tr><tr><td><code>p&lt;slot&gt;<\/code><\/td><td>Read the public component<\/td><\/tr><tr><td><code>s&lt;slot&gt;<\/code><\/td><td>Sign using the slot&rsquo;s private key<\/td><\/tr><tr><td><code>c&lt;slot&gt;<\/code><\/td><td>Destroy the key pair<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Table I. Main primitives of the pNHSM interface.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The private key deliberately has no read operation. The pNHSM exposes only management and signing capabilities.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">V. Slot Encoding<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Each key is referenced by an eight-bit slot. The two most significant bits are reserved and must be zero; the following four bits encode the algorithm, and the two least significant bits encode the key instance.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">bit 7                              bit 0\n+----------+----------------+----------+\n| RESERVED |      ALGO      |    ID    |\n|  2 bits  |     4 bits     |  2 bits  |\n+----------+----------------+----------+\n   00          slot[5:2]      slot[1:0]<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Fig. 3. Binary format of a pNHSM slot.<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">slot = (ALGO &lt;&lt; 2) | ID          (3)\nALGO = (slot &gt;&gt; 2) &amp; 0x0F      (4)\nID = slot &amp; 0x03               (5)\nslot &amp; 0xC0 = 0                (6)<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Thus, ALGO can take sixteen values and ID four values. The format therefore allows up to 64 slots in the current version of the protocol.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, slot <code>0x12<\/code> corresponds to <code>00 | 0100 | 10<\/code>, i.e. ALGO = 4 and ID = 2. Commands <code>g12<\/code>, <code>p12<\/code>, <code>s12<\/code>, and <code>c12<\/code> then refer to the same logical key.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">VI. makek Function<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">A. Purpose<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>makek<\/code> function produces a <code>key.pem<\/code> file usable by PKI tools even though the actual private key remains absent from the host system. The file contains the genuine public key and a substitute private-key representation.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">p&lt;slot&gt; -&gt; TRUE PUBLIC KEY\n               +\n        FAKE PRIVATE PART\n               |\n               v\n             key.pem<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">B. ECDSA Case<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">For a P-256 key, the public component is the point Q in uncompressed format. The placeholder associates this genuine public point with a substitute local private value.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Q = 04 || X || Y<\/code> (7)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">C. RSA Case<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">For RSA, the public parameters are the modulus N and the public exponent E. The placeholder preserves the genuine N and E, while the private parameters D, P, Q, DP, DQ, and QINV are dummy values.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Kpub = (N, E)<\/code> (8)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This representation must not be regarded as a backup of the pNHSM&rsquo;s private key: it serves only to satisfy software that requires a local private-key object before constructing a PKI object.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">VII. Construction of the Provisional Object<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">OpenSSL receives the <code>key.pem<\/code> file and builds a provisional object. For a CSR, this object must already contain the subject, attributes or extensions, genuine public key, and actual signature algorithm. The locally generated signature is irrelevant because it will be replaced.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A fundamental constraint is that the portion to be hashed must not be changed after its extraction.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Dtmp != Dfinal =&gt; Verify(S, Dfinal) = false<\/code> (9)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">VIII. extract Function<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">A. Identifying the Signed Data<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><code>extract<\/code> parses the outer DER envelope and selects the first complete element of the sequence. For PKCS#10, this is <code>CertificationRequestInfo<\/code>; for a certificate, it is <code>TBSCertificate<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>D = DER(CertificationRequestInfo)<\/code> (10)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>D = DER(TBSCertificate)<\/code> (11)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The complete TLV is used, i.e. tag, length, and value. This avoids any ambiguity about the bytes actually covered by the signature.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">B. Computing the Digest<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><code>H = SHA-256(D)<\/code> (12)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the initial version, <code>extract<\/code> computes SHA-256. A multi-algorithm extension could select SHA-256, SHA-384, or SHA-512 from the object&rsquo;s <code>AlgorithmIdentifier<\/code>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">IX. Signing by the pNHSM<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The digest produced by <code>extract<\/code> is sent to the pNHSM using the <code>s&lt;slot&gt;<\/code> primitive. Thus, the only operation involving the actual private key is carried out inside the pNHSM.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>S = Sign(Kpriv,slot, H, A)<\/code> (13)<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">A. ECDSA<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">An ECDSA signature consists of two integers, r and s. In the objects considered here, it is represented by an ASN.1 DER sequence containing these two integers. Its length may vary slightly depending on the values of r and s.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ECDSA-Sig-Value ::= SEQUENCE {\n    r INTEGER,\n    s INTEGER\n}<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">B. RSA<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">For RSA, the signature length equals the modulus length. An RSA-2048 signature therefore occupies 256 bytes, or 512 characters in hexadecimal representation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>|S| = 2048 bits = 256 bytes<\/code> (14)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">X. sig Function<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">A. Signature Replacement<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><code>sig<\/code> preserves the signed portion and the <code>AlgorithmIdentifier<\/code>, then replaces the signature <code>BIT STRING<\/code> with the value returned by the pNHSM. The number of unused bits in the <code>BIT STRING<\/code> is set to zero.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Before:                       After:\nSEQUENCE                      SEQUENCE\n  SignedPart                    SAME SignedPart\n  AlgorithmIdentifier           SAME AlgorithmIdentifier\n  BIT STRING fake               BIT STRING real<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">B. DER Length Recalculation<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><code>LBITSTRING = 1 + |S|<\/code> (15)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Because the signature size may change, particularly with ECDSA, <code>sig<\/code> recalculates the length of the <code>BIT STRING<\/code> and then that of the outer sequence. Reconstruction is therefore independent of offsets in the provisional file.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">C. Algorithm Dependence<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The core of signature replacement is generic: a sequence of bytes is placed in a <code>BIT STRING<\/code>. Differences between algorithms mainly concern validation. ECDSA can be checked as a DER <code>SEQUENCE<\/code> of two <code>INTEGER<\/code> values, whereas RSA can be checked against the modulus length.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>|S| = |N|<\/code> (16)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This separation allows new algorithms to be added without rewriting the ASN.1 reconstruction engine.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">XI. Complete CSR Workflow<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">1. p&lt;slot&gt;           -&gt; real public key\n2. makek             -&gt; key.pem\n3. OpenSSL           -&gt; request_tmp.pem\n4. extract           -&gt; hash\n5. s&lt;slot&gt; \/ pNHSM   -&gt; real signature\n6. sig               -&gt; request.pem\n7. OpenSSL verify    -&gt; validation<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Fig. 4. CSR generation sequence using a non-exportable key.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Final CSR verification can be performed using the OpenSSL <code>req -verify<\/code> command. Successful verification simultaneously demonstrates that the CSR public key corresponds to the private key used by the pNHSM, that the signed DER portion was not modified, and that the signature was correctly inserted.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">XII. Application to X.509 Certificates<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The same mechanism applies to certificates. The main difference is that <code>extract<\/code> selects <code>TBSCertificate<\/code> instead of <code>CertificationRequestInfo<\/code>, and the signing key is the issuing certification authority&rsquo;s key.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">certificate_tmp.pem\n        |\n        v\n      extract\n        |\n        v\nDER(TBSCertificate)\n        |\n        v\n      pNHSM\n        |\n        v\n   CA signature\n        |\n        v\n       sig\n        |\n        v\n certificate.pem<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The algorithm field in <code>TBSCertificate<\/code> must be correct before the digest is computed, since it is itself part of the signed data.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">XIII. Threat Model<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">A. Private-Key Confidentiality<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Kpriv &notin; Host<\/code> (17)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Compromising <code>key.pem<\/code> must not allow the actual private key to be recovered. The substitute file contains only public information and dummy private parameters.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">B. Host Compromise<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Non-exportability does not protect against every kind of misuse. A compromised host may attempt to use <code>s&lt;slot&gt;<\/code> as a signing oracle. Key confidentiality and authorization to use a key are therefore separate properties: the former prevents extraction of the cryptographic secret, while the latter must prevent compromised software from freely exercising signing capability.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To strengthen authorization when the host can no longer be considered trustworthy, access to the TLS 1.3 channel can be supplemented with a TLS-IM (TLS Identity Module). This module retains or protects the elements needed to use the PSK and performs the two sensitive operations associated with PSK authentication in TLS 1.3: binder computation and the derivation operation (<code>derive<\/code>). The PSK and the capability to produce these computations are therefore not left directly available to software running on the compromised host.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The TLS-IM may be implemented as a smart card or an MFA token. In the smart-card case, a PIN controls authorization to execute binder and derive. In the MFA-token case, authorization may combine knowledge of a PIN with explicit evidence of user presence, such as pressing a physical confirmation button. Malware that has taken control of the host cannot then, by itself, automatically obtain the authorization needed to establish the PSK-protected TLS session.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This arrangement introduces two complementary security boundaries: the pNHSM protects the PKI private key and performs the <code>s&lt;slot&gt;<\/code> operation, while the TLS-IM protects authorization to access the pNHSM service by controlling use of the TLS 1.3 PSK. Authorization can thus depend on a knowledge factor (PIN) and, with an MFA token, a physical-presence factor independent of the host&rsquo;s security state.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A production implementation should therefore associate usage policies with slots: authorized identity, operation type, algorithm, rate limits, and logging. It may additionally require TLS-IM authorization before establishing a session that grants access to pNHSM operations.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">C. Separation of Secrets<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The PSK used by TLS protects access to the pNHSM service but is not the PKI private key. This separation isolates transport-channel security from the cryptographic security of PKI identities.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">XIV. Invariance Property<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">Otmp   = Encode(D, A, Stmp)      (18)\nH      = Hash(D)                 (19)\nSreal  = Sign(Kpriv, H)          (20)\nOfinal = Encode(D, A, Sreal)     (21)\nDtmp   = Dfinal                 (22)<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The final equality is the fundamental property of the system: reconstruction must never alter the bytes over which the signature was computed.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">XV. Advantages<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">A. Non-Exportability<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The actual private key remains confined to the pNHSM.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">B. Compatibility<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Existing PKI tools can continue to construct standard objects.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">C. Loose Coupling<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><code>makek<\/code>, <code>extract<\/code>, the pNHSM, and <code>sig<\/code> each have a limited responsibility.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">D. Cryptographic Agility<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The ALGO field supports multiple algorithm families.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">E. Multiple Identities<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The ID field allows four instances per algorithm code.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">F. Auditability<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">The slot, digest, and signature can be logged without exposing the private key.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">XVI. Limitations<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The substitute key is primarily a compatibility mechanism. Some libraries may reject an object whose private component does not mathematically correspond to the public component. In that case, the provisional ASN.1 object must be constructed directly from the genuine public key.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The method is intended for objects that can be constructed and then signed offline. It is not intended to replace an integrated HSM interface for protocols requiring an immediate signature during an exchange.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, a complete multi-algorithm implementation must make <code>extract<\/code> aware of the hash function and separate generic signature replacement in <code>sig<\/code> from validations specific to ECDSA, RSA, or RSA-PSS.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">XVII. Future Extensions<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A natural evolution is to formalize the pNHSM interface independently of its transport through the primitives <code>GENERATE(slot)<\/code>, <code>PUBLIC(slot)<\/code>, <code>SIGN(slot,digest)<\/code>, and <code>CLEAR(slot)<\/code>. The TLS channel would then become one implementation of the API transport.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>extract<\/code> could also return the signed bytes, signature OID, and hash algorithm together. <code>sig<\/code> could offer a fully generic raw mode and a strict mode applying algorithm-specific validations.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">XVIII. Conclusion<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The makek&ndash;extract&ndash;pNHSM&ndash;sig architecture enables offline PKI operations while keeping the actual private key outside the OpenSSL environment. <code>makek<\/code> transforms the genuine public key into a local representation usable by existing tools; <code>extract<\/code> isolates the exact DER bytes covered by the signature and computes their digest; the pNHSM performs the only operation involving the real private key; and <code>sig<\/code> inserts the signature into the ASN.1 object without altering previously hashed data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The private key thus ceases to be a file handled by the application and becomes a non-exportable cryptographic capability referenced only by a slot. This separation of public representation, object construction, preparation of signed data, cryptographic operation, and final reconstruction is the main contribution of the proposed approach.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">XIX. References<\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li>M. Nystrom and B. Kaliski, &ldquo;PKCS #10: Certification Request Syntax Specification Version 1.7,&rdquo; RFC 2986, IETF, November 2000.<\/li><li>D. Cooper et al., &ldquo;Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile,&rdquo; RFC 5280, IETF, May 2008.<\/li><li>ITU-T, &ldquo;ASN.1 encoding rules: Specification of BER, CER and DER,&rdquo; Recommendation X.690.<\/li><li>National Institute of Standards and Technology, &ldquo;Digital Signature Standard (DSS),&rdquo; FIPS PUB 186-5, 2023.<\/li><li>K. Moriarty et al., &ldquo;PKCS #1: RSA Cryptography Specifications Version 2.2,&rdquo; RFC 8017, IETF, November 2016.<\/li><li>E. Rescorla, &ldquo;The Transport Layer Security (TLS) Protocol Version 1.3,&rdquo; RFC 8446, IETF, August 2018.<\/li><li>OpenSSL Project, &ldquo;OpenSSL Cryptographic Library and Command-Line Toolkit,&rdquo; documentation.<\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Offline Outsourcing of PKI Signatures to a pNHSM Module: UberCA The makek&ndash;extract&ndash;sign&ndash;sig architecture for protecting non-exportable private keys Pascal Urien &mdash; pascal.urien@ethertrust.com Abstract Protecting private keys is a fundamental requirement of public key infrastructures. This paper describes an offline signing architecture in which the actual private key remains confined to a security module called a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-399","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/pages\/399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/comments?post=399"}],"version-history":[{"count":1,"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/pages\/399\/revisions"}],"predecessor-version":[{"id":400,"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/pages\/399\/revisions\/400"}],"wp:attachment":[{"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/media?parent=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}