{"id":332,"date":"2026-11-19T19:55:42","date_gmt":"2026-11-19T19:55:42","guid":{"rendered":"https:\/\/ethertrust.com\/?page_id=332"},"modified":"2026-11-19T20:24:20","modified_gmt":"2026-11-19T20:24:20","slug":"mfa2","status":"publish","type":"page","link":"https:\/\/ethertrust.com\/index.php\/mfa2\/","title":{"rendered":"LiveMFA"},"content":{"rendered":"    <section class=\"etmfa-console\" data-etmfa-root=\"1\">\n      <div class=\"etmfa-console-head\"><span class=\"etmfa-kicker\">ETHERTRUST \u00b7 ONLINE SECURE ELEMENT<\/span><h2>TLS 1.3 PSK-ECDHE \u00b7 USB MFA Console<\/h2>\n        <p>Connect the USB TLS-IM and verify your four-digit PIN <strong>before<\/strong> starting the TLS-SE session. Binder and Derive are performed by the USB token; KMS commands run over TLS 1.3 PSK-ECDHE.<\/p>\n      <\/div>\n            <div class=\"etmfa-layout\">\n      <div class=\"etmfa-section\">\n        <input data-etmfa-field=\"mode\" type=\"hidden\" value=\"usb\">\n        <div class=\"etmfa-usb-panel\">\n          <h3>1 \u00b7 USB MFA Token<\/h3>\n          <select data-etmfa-usb=\"transport\" aria-label=\"USB transport (automatic)\" hidden><option value=\"auto\">Auto<\/option><\/select>\n          <div class=\"etmfa-actions\"><button type=\"button\" class=\"etmfa-secondary\" data-etmfa-usb=\"connect\">Select and connect the USB token<\/button><button type=\"button\" class=\"etmfa-secondary\" data-etmfa-usb=\"disconnect\" disabled>Disconnect<\/button><\/div>\n          <p class=\"etmfa-status\" data-etmfa-usb=\"connection\" aria-live=\"polite\">Not connected<\/p>\n          <h3>2 \u00b7 PIN Code<\/h3>\n          <label>4-digit PIN (sent only to the USB token)\n            <input data-etmfa-usb=\"pin\" type=\"password\" inputmode=\"numeric\" autocomplete=\"off\" maxlength=\"4\" placeholder=\"\u2022\u2022\u2022\u2022\" spellcheck=\"false\">\n          <\/label>\n          <button type=\"button\" class=\"etmfa-secondary\" data-etmfa-usb=\"verify\" disabled>Verify PIN<\/button>\n          <label class=\"etmfa-timeout-label\">MFA timeout (seconds)\n            <input data-etmfa-usb=\"timeout\" type=\"number\" min=\"3\" max=\"30\" step=\"1\" value=\"10\" inputmode=\"numeric\" aria-label=\"USB MFA timeout in seconds\">\n          <\/label>\n          <p class=\"etmfa-hint\">Timeout for PIN, Binder and Derive: 10 seconds by default (3\u201330 seconds). Does not change the firmware ACK window.<\/p>\n          <p class=\"etmfa-status\" data-etmfa-usb=\"pin-status\" aria-live=\"polite\">PIN not verified \u00b7 TLS-SE connection disabled<\/p>\n          <p class=\"etmfa-hint\" data-etmfa-usb=\"ack\" hidden>DERIVE command sent. Press the token's <strong>physical ACK button<\/strong> now.<\/p>\n          <p class=\"etmfa-hint\">USB: 19200 baud, 8N1, CRLF. The PSK remains inside the token. After disconnecting, the PIN must be verified again.<\/p>\n        <\/div>\n        <h3>Target TLS-SE<\/h3>\n        <div class=\"etmfa-fields\">\n          <label>Server (DNS or IPv4)<input data-etmfa-field=\"target_host\" type=\"text\" placeholder=\"your-pnhsm.example\" autocomplete=\"off\" maxlength=\"253\" required><\/label>\n          <label>TCP port<input data-etmfa-field=\"target_port\" type=\"number\" min=\"1\" max=\"65535\" value=\"888\" required><\/label>\n          <label>Server Name (SNI)<input data-etmfa-field=\"target_sni\" type=\"text\" placeholder=\"key1.com\" maxlength=\"253\" required><\/label>\n          <label>PSK identity<input data-etmfa-field=\"target_identity\" type=\"text\" value=\"Client_identity\" maxlength=\"128\" required><\/label>\n        <\/div>\n        <label class=\"etmfa-label\">Per-operation timeout (seconds)<input data-etmfa-field=\"timeout\" type=\"number\" min=\"5\" max=\"45\" value=\"20\"><\/label>\n        <p class=\"etmfa-hint\">Allowed TCP ports \/ ranges: 443-444, 888, 7000-8000, 8888. Only publicly routable IPv4 endpoints can be contacted.<\/p>\n      <\/div>\n      <div class=\"etmfa-section etmfa-terminal\">\n        <h3>KMS commands<\/h3><p class=\"etmfa-hint\">One command per line. Lines beginning with <code>#<\/code> are comments. Click a suggested command below to insert it.<\/p>\n        <p class=\"etmfa-hint\"><strong>Binary KMS mode (automatic):<\/strong> for <code>s, h, H, a, A, E, D, e, d<\/code>, when the key index has bit 7 set (<code>80<\/code>\u2013<code>FF<\/code>), enter the payload as hexadecimal pairs, e.g. <code>s80001122FF<\/code>. The three-character header stays ASCII; the payload is sent as raw bytes and the binary reply is shown as HEX. CRLF is automatic. Other commands remain text.<\/p>\n        <textarea data-etmfa-commands rows=\"8\" spellcheck=\"false\" autocomplete=\"off\">?00<\/textarea>\n        <div class=\"etmfa-actions\"><button type=\"button\" data-etmfa-run class=\"etmfa-button\" >Connect TLS-SE &amp; run commands<\/button><button type=\"button\" data-etmfa-clear-commands class=\"etmfa-secondary\" title=\"Clear the KMS command editor only; retain USB login and previous results.\">Clear Commands<\/button><button type=\"button\" data-etmfa-clear-all class=\"etmfa-secondary\" title=\"Clear KMS\/record data and previous results; do not disconnect the USB token.\">Clear All<\/button><\/div>\n        <p class=\"etmfa-status\" data-etmfa-status aria-live=\"polite\">Ready \u00b7 one TLS-SE session per run.<\/p>\n        <div class=\"etmfa-timings\" data-etmfa-timings hidden aria-live=\"polite\"><\/div>\n        <div class=\"etmfa-results\" data-etmfa-results hidden><\/div>\n      <\/div><\/div>\n      <div class=\"etmfa-section etmfa-records\" data-etmfa-records>\n        <h3>Secure Element Records \u00b7 Z \/ I<\/h3>\n        <p class=\"etmfa-hint\">Write a record using text on screen or <strong>Read from File<\/strong> (bytes preserved). Record indices 0\u20133 hold at most <strong>1,280 bytes<\/strong> each. <code>Z00<\/code>\u2013<code>Z03<\/code> write the content followed by an additional CRLF; <code>I00<\/code>\u2013<code>I03<\/code> return the content followed by an additional CRLF. Internal CRLF and non-ASCII bytes are supported. Each operation uses the TLS connection settings above.<\/p>\n        <div class=\"etmfa-record-fields\">\n          <label>Record index\n            <select data-etmfa-record-index><option value=\"0\">0 \u00b7 Z00 \/ I00<\/option><option value=\"1\">1 \u00b7 Z01 \/ I01<\/option><option value=\"2\">2 \u00b7 Z02 \/ I02<\/option><option value=\"3\">3 \u00b7 Z03 \/ I03<\/option><\/select>\n          <\/label>\n          <label>Write source\n            <select data-etmfa-record-source><option value=\"text\">On-screen text (selected encoding)<\/option><option value=\"file\">File (original bytes)<\/option><\/select>\n          <\/label>\n          <label>Text character set (display and on-screen write)\n            <select data-etmfa-record-charset>\n              <option value=\"ascii\" selected>English \u00b7 ASCII (default)<\/option>\n              <option value=\"windows-1252\">French text \u00b7 extended ASCII (Windows-1252)<\/option>\n              <option value=\"iso-8859-1\">French text \u00b7 Latin-1 (ISO-8859-1)<\/option>\n              <option value=\"utf-8\">Unicode \u00b7 UTF-8<\/option>\n            <\/select>\n          <\/label>\n        <\/div>\n        <p class=\"etmfa-hint\">This setting affects the readable preview and text typed on screen. In French mode, accented letters such as &#233;, &#232;, &#234;, &#224;, &#231;, &#249;, &#244; are decoded and encoded in one byte. Unrecognized bytes display as <code>\\xHH<\/code>. Files and downloads remain byte-exact.<\/p>\n        <label data-etmfa-record-text-wrap>Record to write (text editor \/ escaped file preview)\n          <textarea rows=\"6\" data-etmfa-record-editor spellcheck=\"false\" placeholder=\"Type the record content, including line breaks\"><\/textarea>\n        <\/label>\n        <input type=\"file\" data-etmfa-record-file hidden>\n        <div class=\"etmfa-actions\">\n          <button type=\"button\" class=\"etmfa-secondary\" data-etmfa-record-load>Read from File<\/button>\n          <button type=\"button\" class=\"etmfa-secondary\" data-etmfa-record-clear-write title=\"Clear only the Write Record editor and any selected file. Keep USB authentication and read results.\">Clear Write<\/button>\n          <button type=\"button\" class=\"etmfa-secondary\" data-etmfa-record-clear-read title=\"Clear the read text, HEX display and previously read record, without changing Write Record or USB authentication.\">Clear Read<\/button>\n          <button type=\"button\" class=\"etmfa-secondary\" data-etmfa-record-write >Write Record (Z)<\/button>\n          <button type=\"button\" class=\"etmfa-secondary\" data-etmfa-record-read >Read Record (I)<\/button>\n        <\/div>\n        <p class=\"etmfa-status\" data-etmfa-record-status aria-live=\"polite\">No file or record loaded.<\/p>\n        <div class=\"etmfa-record-read-options\">\n          <label class=\"etmfa-record-crlf-option\"><input type=\"checkbox\" data-etmfa-record-crlf checked> Display real CRLF \/ LF bytes (0D 0A \/ 0A) as line breaks<\/label>\n          <label class=\"etmfa-record-crlf-option\"><input type=\"checkbox\" data-etmfa-record-escaped-lf checked> Display literal \\n and \\r\\n sequences as visual line breaks<\/label>\n          <span class=\"etmfa-hint\">Display only: literal sequences are interpreted in the preview, not in the record. The original bytes and downloaded files are unchanged. HEX lines are limited to 128 characters (64 bytes).<\/span>\n        <\/div>\n        <div class=\"etmfa-record-output\" data-etmfa-record-output hidden>\n          <label>Read record \u2014 text preview (selected encoding; \\xHH for unprintable bytes)<textarea data-etmfa-record-preview rows=\"6\" readonly spellcheck=\"false\"><\/textarea><\/label>\n          <label>Read record \u2014 HEX (exact bytes; 128 hex characters per line)<textarea data-etmfa-record-hex rows=\"6\" readonly spellcheck=\"false\"><\/textarea><\/label>\n          <div class=\"etmfa-record-download\">\n            <div class=\"etmfa-record-download-fields\">\n              <label>Download file name (without extension)\n                <input type=\"text\" data-etmfa-record-filename value=\"ethertrust-record-0\" maxlength=\"120\" autocomplete=\"off\" spellcheck=\"false\" aria-label=\"Download file name without extension\">\n              <\/label>\n              <label>File extension\n                <select data-etmfa-record-extension aria-label=\"Download file extension\">\n                  <option value=\"bin\" selected>.bin (binary)<\/option>\n                  <option value=\"txt\">.txt (text)<\/option>\n                  <option value=\"custom\">Other extension\u2026<\/option>\n                <\/select>\n              <\/label>\n              <label data-etmfa-record-custom-wrap hidden>Custom extension (without dot)\n                <input data-etmfa-record-custom type=\"text\" value=\"dat\" maxlength=\"16\" autocomplete=\"off\" spellcheck=\"false\" placeholder=\"e.g. dat, json, pem\">\n              <\/label>\n            <\/div>\n            <button type=\"button\" class=\"etmfa-secondary\" data-etmfa-record-save disabled>Save Record to File<\/button>\n          <\/div>\n          <p class=\"etmfa-hint\">Examples: <code>Hello\\r\\nWorld\\x00\\xFF<\/code>. Actual CRLF or LF bytes and literal \\n sequences can both be displayed as line breaks when selected; original record bytes stay unchanged. The two additional CRLF framing bytes are excluded. Save downloads the <strong>original bytes<\/strong>, not the escaped preview, regardless of the selected file extension.<\/p>\n        <\/div>\n      <\/div>\n      <p class=\"etmfa-footnote\">Experimental prototype: HTTPS required. Neither the PIN nor the PSK is sent to WordPress. Temporary Binder and Derive outputs pass through PHP; no permanent storage is intended. Do not use production secrets before a security review and tests on real hardware.<\/p>\n    <\/section>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-332","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/pages\/332","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=332"}],"version-history":[{"count":2,"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/pages\/332\/revisions"}],"predecessor-version":[{"id":338,"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/pages\/332\/revisions\/338"}],"wp:attachment":[{"href":"https:\/\/ethertrust.com\/index.php\/wp-json\/wp\/v2\/media?parent=332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}