{"id":1988,"date":"2026-11-17T22:01:27","date_gmt":"2026-11-17T20:01:27","guid":{"rendered":"https:\/\/brainplusplus.bg\/?page_id=1988"},"modified":"2026-11-19T22:18:00","modified_gmt":"2026-11-19T20:18:00","slug":"pqc-pki-for-ai","status":"publish","type":"page","link":"https:\/\/brainplusplus.bg\/bg\/technologies\/pqc-pki-for-ai\/","title":{"rendered":"PQC PKI \u0437\u0430 AI"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1988\" class=\"elementor elementor-1988\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0258019 e-flex e-con-boxed e-con e-parent\" data-id=\"0258019\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f40603b elementor-widget elementor-widget-html\" data-id=\"f40603b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<style>\r\n\/* =========================================================\r\n   BRAIN++ AI INFRASTRUCTURE\r\n   Dark version for a black website background\r\n========================================================= *\/\r\n\r\n#brain-infrastructure-page {\r\n    --brain-bg: #050505;\r\n    --brain-bg-soft: #0d0d0d;\r\n    --brain-card: #141414;\r\n    --brain-card-hover: #1a1a1a;\r\n    --brain-border: rgba(255, 255, 255, 0.14);\r\n    --brain-white: #ffffff;\r\n    --brain-text: #e7e7e7;\r\n    --brain-muted: #a5a5a5;\r\n    --brain-accent: #1A55B5;\r\n    --brain-accent-hover: #009FD8;\r\n\r\n    width: 100%;\r\n    overflow: hidden;\r\n    background: var(--brain-bg);\r\n    color: var(--brain-text);\r\n    font-family: inherit;\r\n    line-height: 1.65;\r\n}\r\n\r\n#brain-infrastructure-page *,\r\n#brain-infrastructure-page *::before,\r\n#brain-infrastructure-page *::after {\r\n    box-sizing: border-box;\r\n}\r\n\r\n#brain-infrastructure-page h1,\r\n#brain-infrastructure-page h2,\r\n#brain-infrastructure-page h3,\r\n#brain-infrastructure-page h4,\r\n#brain-infrastructure-page p {\r\n    margin-top: 0;\r\n}\r\n\r\n#brain-infrastructure-page h1,\r\n#brain-infrastructure-page h2,\r\n#brain-infrastructure-page h3,\r\n#brain-infrastructure-page h4 {\r\n    color: var(--brain-white);\r\n}\r\n\r\n#brain-infrastructure-page h1 {\r\n    max-width: 960px;\r\n    margin-bottom: 26px;\r\n    font-size: clamp(42px, 6vw, 82px);\r\n    line-height: 0.98;\r\n    letter-spacing: -0.055em;\r\n}\r\n\r\n#brain-infrastructure-page h2 {\r\n    margin-bottom: 22px;\r\n    font-size: clamp(31px, 4vw, 54px);\r\n    line-height: 1.06;\r\n    letter-spacing: -0.04em;\r\n}\r\n\r\n#brain-infrastructure-page h3 {\r\n    margin-bottom: 15px;\r\n    font-size: clamp(23px, 2.4vw, 32px);\r\n    line-height: 1.16;\r\n    letter-spacing: -0.025em;\r\n}\r\n\r\n#brain-infrastructure-page h4 {\r\n    margin-bottom: 9px;\r\n    font-size: 19px;\r\n    line-height: 1.3;\r\n}\r\n\r\n#brain-infrastructure-page p {\r\n    margin-bottom: 20px;\r\n}\r\n\r\n#brain-infrastructure-page a {\r\n    color: inherit;\r\n}\r\n\r\n#brain-infrastructure-page img {\r\n    display: block;\r\n    max-width: 100%;\r\n}\r\n\r\n.brain-container {\r\n    width: min(1180px, calc(100% - 40px));\r\n    margin: 0 auto;\r\n}\r\n\r\n.brain-section {\r\n    padding: 100px 0;\r\n}\r\n\r\n.brain-section-sm {\r\n    padding: 70px 0;\r\n}\r\n\r\n.brain-soft-section {\r\n    background: var(--brain-bg-soft);\r\n}\r\n\r\n.brain-eyebrow {\r\n    display: inline-flex;\r\n    align-items: center;\r\n    gap: 11px;\r\n    margin-bottom: 23px;\r\n    color: var(--brain-accent);\r\n    font-size: 13px;\r\n    font-weight: 700;\r\n    letter-spacing: 0.16em;\r\n    text-transform: uppercase;\r\n}\r\n\r\n.brain-eyebrow::before {\r\n    width: 34px;\r\n    height: 2px;\r\n    content: \"\";\r\n    background: var(--brain-accent);\r\n}\r\n\r\n.brain-lead {\r\n    max-width: 840px;\r\n    margin-bottom: 0;\r\n    color: #cecece;\r\n    font-size: clamp(19px, 2.1vw, 26px);\r\n    line-height: 1.5;\r\n}\r\n\r\n.brain-body-large {\r\n    color: #dedede;\r\n    font-size: 19px;\r\n}\r\n\r\n.brain-muted {\r\n    color: var(--brain-muted);\r\n}\r\n\r\n.brain-grid-2 {\r\n    display: grid;\r\n    grid-template-columns: repeat(2, minmax(0, 1fr));\r\n    gap: 60px;\r\n    align-items: center;\r\n}\r\n\r\n.brain-grid-3 {\r\n    display: grid;\r\n    grid-template-columns: repeat(3, minmax(0, 1fr));\r\n    gap: 24px;\r\n}\r\n\r\n.brain-button-row {\r\n    display: flex;\r\n    flex-wrap: wrap;\r\n    gap: 14px;\r\n    margin-top: 34px;\r\n}\r\n\r\n.brain-button {\r\n    display: inline-flex;\r\n    min-height: 52px;\r\n    align-items: center;\r\n    justify-content: center;\r\n    padding: 13px 24px;\r\n    border: 1px solid var(--brain-accent);\r\n    border-radius: 999px;\r\n    background: var(--brain-accent);\r\n    color: var(--brain-white) !important;\r\n    font-size: 15px;\r\n    font-weight: 700;\r\n    line-height: 1.2;\r\n    text-decoration: none !important;\r\n    transition:\r\n        transform 0.2s ease,\r\n        background 0.2s ease,\r\n        border-color 0.2s ease;\r\n}\r\n\r\n.brain-button:hover {\r\n    transform: translateY(-2px);\r\n    border-color: var(--brain-accent-hover);\r\n    background: var(--brain-accent-hover);\r\n}\r\n\r\n.brain-button-secondary {\r\n    border-color: rgba(255, 255, 255, 0.45);\r\n    background: transparent;\r\n    color: var(--brain-white) !important;\r\n}\r\n\r\n.brain-button-secondary:hover {\r\n    border-color: var(--brain-white);\r\n    background: var(--brain-white);\r\n    color: #000 !important;\r\n}\r\n\r\n.brain-hero {\r\n    position: relative;\r\n    min-height: 720px;\r\n    display: flex;\r\n    align-items: flex-end;\r\n    isolation: isolate;\r\n    background:\r\n        linear-gradient(\r\n            90deg,\r\n            rgba(0, 0, 0, 0.97) 0%,\r\n            rgba(0, 0, 0, 0.79) 48%,\r\n            rgba(0, 0, 0, 0.42) 100%\r\n        ),\r\n        url(\"REPLACE-WITH-HERO-IMAGE-URL\") center center \/ cover no-repeat;\r\n}\r\n\r\n.brain-hero::after {\r\n    position: absolute;\r\n    inset: auto 0 0;\r\n    z-index: -1;\r\n    height: 200px;\r\n    content: \"\";\r\n    background: linear-gradient(transparent, var(--brain-bg));\r\n}\r\n\r\n.brain-hero-content {\r\n    max-width: 990px;\r\n    padding: 150px 0 95px;\r\n}\r\n\r\n.brain-hero .brain-lead {\r\n    color: rgba(255, 255, 255, 0.82);\r\n}\r\n\r\n.brain-hero-meta {\r\n    display: flex;\r\n    flex-wrap: wrap;\r\n    gap: 10px;\r\n    margin-top: 34px;\r\n}\r\n\r\n.brain-pill {\r\n    display: inline-flex;\r\n    min-height: 35px;\r\n    align-items: center;\r\n    padding: 6px 14px;\r\n    border: 1px solid rgba(255, 255, 255, 0.25);\r\n    border-radius: 999px;\r\n    background: rgba(255, 255, 255, 0.04);\r\n    color: rgba(255, 255, 255, 0.9);\r\n    font-size: 13px;\r\n}\r\n\r\n.brain-intro-number,\r\n.brain-card-number {\r\n    display: block;\r\n    color: var(--brain-accent);\r\n    font-size: 14px;\r\n    font-weight: 700;\r\n    letter-spacing: 0.1em;\r\n}\r\n\r\n.brain-intro-number {\r\n    margin-bottom: 15px;\r\n}\r\n\r\n.brain-card-number {\r\n    margin-bottom: 43px;\r\n}\r\n\r\n.brain-card {\r\n    height: 100%;\r\n    padding: 35px;\r\n    border: 1px solid var(--brain-border);\r\n    border-radius: 22px;\r\n    background: var(--brain-card);\r\n    transition:\r\n        transform 0.25s ease,\r\n        background 0.25s ease,\r\n        border-color 0.25s ease;\r\n}\r\n\r\n.brain-card:hover {\r\n    transform: translateY(-5px);\r\n    border-color: var(--brain-accent-hover);\r\n    background: var(--brain-card-hover);\r\n}\r\n\r\n.brain-card p {\r\n    color: var(--brain-muted);\r\n}\r\n\r\n.brain-card-link {\r\n    display: inline-flex;\r\n    margin-top: 8px;\r\n    color: var(--brain-white) !important;\r\n    font-weight: 700;\r\n    text-decoration: none !important;\r\n}\r\n\r\n.brain-card-link::after {\r\n    margin-left: 8px;\r\n    color: var(--brain-accent);\r\n    content: \"\u2192\";\r\n    transition: transform 0.2s ease;\r\n}\r\n\r\n.brain-card-link:hover::after {\r\n    transform: translateX(5px);\r\n}\r\n\r\n.brain-feature-media {\r\n    overflow: hidden;\r\n    min-height: 520px;\r\n    border: 1px solid var(--brain-border);\r\n    border-radius: 24px;\r\n    background: var(--brain-card);\r\n}\r\n\r\n.brain-feature-media img {\r\n    width: 100%;\r\n    height: 100%;\r\n    min-height: 520px;\r\n    object-fit: cover;\r\n}\r\n\r\n.brain-highlight-box {\r\n    padding: 30px;\r\n    border: 1px solid var(--brain-border);\r\n    border-left: 4px solid var(--brain-accent);\r\n    background: var(--brain-card);\r\n}\r\n\r\n.brain-highlight-box p:last-child {\r\n    margin-bottom: 0;\r\n}\r\n\r\n.brain-video-shell {\r\n    overflow: hidden;\r\n    border: 1px solid var(--brain-border);\r\n    border-radius: 24px;\r\n    background: #000;\r\n    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.55);\r\n}\r\n\r\n.brain-video-shell video {\r\n    display: block;\r\n    width: 100%;\r\n    aspect-ratio: 16 \/ 9;\r\n    background: #000;\r\n    object-fit: contain;\r\n}\r\n\r\n.brain-layer {\r\n    padding: 38px 30px;\r\n    border-top: 1px solid var(--brain-border);\r\n}\r\n\r\n.brain-layer:first-child {\r\n    border-top: 0;\r\n}\r\n\r\n.brain-layer-label {\r\n    display: block;\r\n    margin-bottom: 14px;\r\n    color: var(--brain-accent);\r\n    font-size: 13px;\r\n    font-weight: 700;\r\n    letter-spacing: 0.12em;\r\n    text-transform: uppercase;\r\n}\r\n\r\n.brain-layer p {\r\n    max-width: 880px;\r\n    margin-bottom: 0;\r\n    color: var(--brain-muted);\r\n}\r\n\r\n.brain-list {\r\n    display: grid;\r\n    gap: 13px;\r\n    padding: 0;\r\n    margin: 28px 0 0;\r\n    list-style: none;\r\n}\r\n\r\n.brain-list li {\r\n    position: relative;\r\n    padding-left: 28px;\r\n    color: #d3d3d3;\r\n}\r\n\r\n.brain-list li::before {\r\n    position: absolute;\r\n    left: 0;\r\n    top: 0.04em;\r\n    color: var(--brain-accent);\r\n    content: \"\u2197\";\r\n    font-weight: 700;\r\n}\r\n\r\n.brain-industry {\r\n    padding: 32px 0;\r\n    border-top: 1px solid var(--brain-border);\r\n}\r\n\r\n.brain-industry:last-child {\r\n    border-bottom: 1px solid var(--brain-border);\r\n}\r\n\r\n.brain-industry-grid {\r\n    display: grid;\r\n    grid-template-columns: 250px 1fr;\r\n    gap: 45px;\r\n}\r\n\r\n.brain-industry p {\r\n    margin-bottom: 0;\r\n    color: var(--brain-muted);\r\n}\r\n\r\n.brain-flow {\r\n    display: grid;\r\n    grid-template-columns: 1fr 70px 1fr;\r\n    align-items: stretch;\r\n    margin-top: 48px;\r\n}\r\n\r\n.brain-flow-item {\r\n    min-height: 280px;\r\n    padding: 31px;\r\n    border: 1px solid var(--brain-border);\r\n    border-radius: 20px;\r\n    background: var(--brain-card);\r\n}\r\n\r\n.brain-flow-item p {\r\n    color: var(--brain-muted);\r\n}\r\n\r\n.brain-flow-arrow {\r\n    display: flex;\r\n    align-items: center;\r\n    justify-content: center;\r\n    color: var(--brain-accent);\r\n    font-size: 34px;\r\n}\r\n\r\n.brain-status-grid {\r\n    display: grid;\r\n    grid-template-columns: 0.85fr 1.15fr;\r\n    gap: 75px;\r\n    align-items: start;\r\n}\r\n\r\n.brain-status {\r\n    padding: 28px 0;\r\n    border-top: 1px solid var(--brain-border);\r\n}\r\n\r\n.brain-status:last-child {\r\n    border-bottom: 1px solid var(--brain-border);\r\n}\r\n\r\n.brain-status small {\r\n    display: block;\r\n    margin-bottom: 8px;\r\n    color: var(--brain-accent);\r\n    font-weight: 700;\r\n    letter-spacing: 0.1em;\r\n    text-transform: uppercase;\r\n}\r\n\r\n.brain-status p {\r\n    margin-bottom: 0;\r\n    color: var(--brain-muted);\r\n}\r\n\r\n.brain-download-card {\r\n    height: 100%;\r\n    padding: 38px;\r\n    border: 1px solid var(--brain-border);\r\n    border-radius: 24px;\r\n    background: var(--brain-card);\r\n}\r\n\r\n.brain-download-card p {\r\n    color: var(--brain-muted);\r\n}\r\n\r\n.brain-cta {\r\n    padding: 78px 0;\r\n    background: var(--brain-accent);\r\n    color: var(--brain-white);\r\n}\r\n\r\n.brain-cta-inner {\r\n    display: grid;\r\n    grid-template-columns: 1.4fr auto;\r\n    gap: 50px;\r\n    align-items: center;\r\n}\r\n\r\n.brain-cta h2 {\r\n    max-width: 820px;\r\n    margin-bottom: 13px;\r\n}\r\n\r\n.brain-cta p {\r\n    max-width: 750px;\r\n    margin-bottom: 0;\r\n    color: rgba(255, 255, 255, 0.87);\r\n    font-size: 18px;\r\n}\r\n\r\n.brain-cta .brain-button {\r\n    border-color: var(--brain-white);\r\n    background: var(--brain-white);\r\n    color: #000 !important;\r\n}\r\n\r\n.brain-cta .brain-button:hover {\r\n    border-color: #000;\r\n    background: #000;\r\n    color: var(--brain-white) !important;\r\n}\r\n\r\n@media (max-width: 900px) {\r\n    .brain-section {\r\n        padding: 75px 0;\r\n    }\r\n\r\n    .brain-grid-2,\r\n    .brain-grid-3,\r\n    .brain-status-grid,\r\n    .brain-cta-inner {\r\n        grid-template-columns: 1fr;\r\n    }\r\n\r\n    .brain-flow {\r\n        grid-template-columns: 1fr;\r\n        gap: 16px;\r\n    }\r\n\r\n    .brain-flow-arrow {\r\n        min-height: 34px;\r\n        transform: rotate(90deg);\r\n    }\r\n\r\n    .brain-industry-grid {\r\n        grid-template-columns: 1fr;\r\n        gap: 8px;\r\n    }\r\n\r\n    .brain-hero {\r\n        min-height: 620px;\r\n        background:\r\n            linear-gradient(\r\n                90deg,\r\n                rgba(0, 0, 0, 0.96),\r\n                rgba(0, 0, 0, 0.63)\r\n            ),\r\n            url(\"REPLACE-WITH-HERO-IMAGE-URL\") center center \/ cover no-repeat;\r\n    }\r\n\r\n    .brain-hero-content {\r\n        padding: 130px 0 75px;\r\n    }\r\n\r\n    .brain-feature-media,\r\n    .brain-feature-media img {\r\n        min-height: 380px;\r\n    }\r\n}\r\n\r\n@media (max-width: 560px) {\r\n    .brain-container {\r\n        width: min(100% - 28px, 1180px);\r\n    }\r\n\r\n    .brain-section {\r\n        padding: 60px 0;\r\n    }\r\n\r\n    .brain-card,\r\n    .brain-download-card {\r\n        padding: 26px;\r\n    }\r\n\r\n    .brain-button {\r\n        width: 100%;\r\n    }\r\n}\r\n\r\n\/* IMAGE LIGHTBOX *\/\r\n.brain-lightbox {\r\n    position: fixed;\r\n    inset: 0;\r\n    z-index: 999999;\r\n    display: none;\r\n    align-items: center;\r\n    justify-content: center;\r\n    padding: 24px;\r\n}\r\n.brain-lightbox.is-open { display: flex; }\r\n\r\n#brain-infrastructure-page .brain-lightbox-backdrop,\r\n#brain-infrastructure-page .brain-lightbox-backdrop:hover,\r\n#brain-infrastructure-page .brain-lightbox-backdrop:focus,\r\n#brain-infrastructure-page .brain-lightbox-backdrop:active {\r\n    position: absolute;\r\n    inset: 0;\r\n    width: 100%;\r\n    height: 100%;\r\n    padding: 0!important;\r\n    margin: 0!important;\r\n    border: 0!important;\r\n    border-radius: 0!important;\r\n    outline: 0!important;\r\n    background: rgba(0,0,0,.92)!important;\r\n    box-shadow: none!important;\r\n    color: transparent!important;\r\n    opacity: 1!important;\r\n    transform: none!important;\r\n    cursor: zoom-out;\r\n    appearance: none;\r\n    -webkit-appearance: none;\r\n    backdrop-filter: blur(7px);\r\n    -webkit-backdrop-filter: blur(7px);\r\n}\r\n.brain-lightbox-dialog {\r\n    position: relative;\r\n    z-index: 1;\r\n    width: min(1500px, 96vw);\r\n    max-height: 94vh;\r\n    overflow: hidden;\r\n    border: 1px solid rgba(255,255,255,.2);\r\n    border-radius: 18px;\r\n    background: #fff;\r\n    box-shadow: 0 30px 100px rgba(0,0,0,.75);\r\n}\r\n.brain-lightbox-scroll {\r\n    max-height: 94vh;\r\n    overflow: auto;\r\n    overscroll-behavior: contain;\r\n    -webkit-overflow-scrolling: touch;\r\n}\r\n.brain-lightbox-scroll img {\r\n    width: 100%;\r\n    max-width: none!important;\r\n    height: auto;\r\n    margin: 0;\r\n    background: #fff;\r\n}\r\n#brain-infrastructure-page .brain-lightbox-close,\r\n#brain-infrastructure-page .brain-lightbox-close:focus,\r\n#brain-infrastructure-page .brain-lightbox-close:active {\r\n    position: absolute;\r\n    top: 12px;\r\n    right: 12px;\r\n    z-index: 3;\r\n    width: 46px;\r\n    height: 46px;\r\n    padding: 0!important;\r\n    border: 1px solid rgba(255,255,255,.45)!important;\r\n    border-radius: 50%!important;\r\n    background: rgba(0,0,0,.82)!important;\r\n    color: #fff!important;\r\n    cursor: pointer;\r\n    font-family: Arial, sans-serif;\r\n    font-size: 34px;\r\n    font-weight: 300;\r\n    line-height: 40px;\r\n    text-align: center;\r\n    box-shadow: none!important;\r\n    appearance: none;\r\n    -webkit-appearance: none;\r\n    transition: transform .2s ease, background .2s ease;\r\n}\r\n#brain-infrastructure-page .brain-lightbox-close:hover {\r\n    transform: scale(1.06)!important;\r\n    background: var(--brain-accent)!important;\r\n}\r\nbody.brain-lightbox-open { overflow: hidden; }\r\n\r\n#brain-infrastructure-page .brain-image-wrap {\r\n    position: relative;\r\n    display: inline-block;\r\n    max-width: 100%;\r\n    cursor: zoom-in;\r\n}\r\n#brain-infrastructure-page .brain-image-wrap img {\r\n    display: block;\r\n    width: 100%;\r\n    max-width: 100%;\r\n}\r\n#brain-infrastructure-page .brain-image-hint {\r\n    position: absolute;\r\n    right: 12px;\r\n    bottom: 12px;\r\n    display: inline-flex;\r\n    min-height: 32px;\r\n    align-items: center;\r\n    padding: 6px 12px;\r\n    border: 1px solid rgba(255,255,255,.45);\r\n    border-radius: 999px;\r\n    background: rgba(0,0,0,.7);\r\n    color: #fff;\r\n    font-size: 11px;\r\n    font-weight: 700;\r\n    line-height: 1;\r\n    pointer-events: none;\r\n    backdrop-filter: blur(8px);\r\n    -webkit-backdrop-filter: blur(8px);\r\n    opacity: 0;\r\n    transition: opacity .2s ease;\r\n}\r\n#brain-infrastructure-page .brain-image-wrap:hover .brain-image-hint,\r\n#brain-infrastructure-page .brain-image-wrap:focus-within .brain-image-hint {\r\n    opacity: 1;\r\n}\r\n#brain-infrastructure-page .brain-image-hint::before {\r\n    margin-right: 5px;\r\n    content: \"\uff0b\";\r\n    font-size: 14px;\r\n}\r\n\r\n@media (max-width: 560px) {\r\n    .brain-lightbox { padding: 8px; }\r\n    .brain-lightbox-dialog {\r\n        width: calc(100vw - 16px);\r\n        max-height: 92vh;\r\n        border-radius: 12px;\r\n    }\r\n    .brain-lightbox-scroll { max-height: 92vh; }\r\n    #brain-infrastructure-page .brain-lightbox-close,\r\n    #brain-infrastructure-page .brain-lightbox-close:focus,\r\n    #brain-infrastructure-page .brain-lightbox-close:active {\r\n        position: fixed;\r\n        top: 14px;\r\n        right: 14px;\r\n        width: 42px;\r\n        height: 42px;\r\n        font-size: 30px;\r\n        line-height: 36px;\r\n    }\r\n    #brain-infrastructure-page .brain-image-hint {\r\n        right: 8px;\r\n        bottom: 8px;\r\n        min-height: 28px;\r\n        padding: 5px 10px;\r\n        font-size: 10px;\r\n    }\r\n}\r\n\r\n\/* =========================================================\r\n   DATA CENTRE & AI FACTORY ADVISORY \u2014 page-specific additions\r\n   (everything above is identical to the other Services pages)\r\n========================================================= *\/\r\n\r\n.brain-steps {\r\n    display: grid;\r\n    grid-template-columns: repeat(4, minmax(0, 1fr));\r\n    gap: 18px;\r\n    margin-top: 48px;\r\n    counter-reset: brain-step;\r\n}\r\n\r\n.brain-step {\r\n    position: relative;\r\n    padding: 31px 28px;\r\n    border: 1px solid var(--brain-border);\r\n    border-top: 3px solid var(--brain-accent);\r\n    border-radius: 20px;\r\n    background: var(--brain-card);\r\n}\r\n\r\n.brain-step h3 {\r\n    font-size: 22px;\r\n}\r\n\r\n.brain-step p {\r\n    margin-bottom: 0;\r\n    color: var(--brain-muted);\r\n    font-size: 16px;\r\n}\r\n\r\n@media (max-width: 900px) {\r\n    .brain-steps {\r\n        grid-template-columns: repeat(2, minmax(0, 1fr));\r\n    }\r\n}\r\n\r\n@media (max-width: 560px) {\r\n    .brain-steps {\r\n        grid-template-columns: 1fr;\r\n    }\r\n}\r\n\r\n\/* CHAIN++ page additions *\/\r\n.chain-page .chain-grid-cards {\r\n    align-items: stretch;\r\n    gap: 24px;\r\n}\r\n\r\n.chain-page .brain-flow {\r\n    margin-top: 24px;\r\n}\r\n\r\n.chain-page .brain-flow-item {\r\n    min-height: 0;\r\n}\r\n\r\n.chain-page .brain-step a,\r\n.chain-page .brain-industry a {\r\n    color: var(--brain-accent-hover);\r\n    font-weight: 700;\r\n}\r\n\r\n.chain-page .brain-download-card {\r\n    display: flex;\r\n    flex-direction: column;\r\n}\r\n\r\n.chain-page .brain-download-card .brain-button {\r\n    align-self: flex-start;\r\n    margin-top: auto;\r\n}\r\n\r\n@media (max-width: 900px) {\r\n    .chain-page .chain-grid-cards,\r\n    .chain-page .brain-grid-3 {\r\n        grid-template-columns: 1fr;\r\n    }\r\n\r\n    .chain-page .brain-flow {\r\n        grid-template-columns: 1fr;\r\n    }\r\n\r\n    .chain-page .brain-flow-arrow {\r\n        padding: 10px 0;\r\n    }\r\n\r\n    .chain-page .brain-industry-grid,\r\n    .chain-page .brain-status-grid {\r\n        grid-template-columns: 1fr;\r\n        gap: 12px;\r\n    }\r\n}\r\n\r\n\/* Hero: gradient only. The CHAIN++ cover art carries its own wordmark and\r\n   tagline, which show through behind the headline, so it is not used here. *\/\r\n#brain-infrastructure-page.chain-page .brain-hero {\r\n    background:\r\n        radial-gradient(ellipse at 85% 30%, rgba(0, 159, 216, 0.28), transparent 55%),\r\n        radial-gradient(ellipse at 70% 90%, rgba(26, 85, 181, 0.35), transparent 60%),\r\n        #050505;\r\n}\r\n\r\n\n\n\/* =========================================================\nTECHNOLOGIES pages (CHAIN++, PQC PKI for AI, P2P Connector)\nBuilds on the shared BRAIN++ page styles above.\n========================================================= *\/\n#brain-infrastructure-page.tech-page .brain-hero {\nmin-height: 600px;\nbackground:\nradial-gradient(ellipse at 85% 30%, rgba(0, 159, 216, 0.28), transparent 55%),\nradial-gradient(ellipse at 70% 90%, rgba(26, 85, 181, 0.35), transparent 60%),\n#050505;\n}\n.tech-page .brain-hero-content { padding: 150px 0 80px; }\n.tech-page .brain-eyebrow a { color: inherit !important; text-decoration: none !important; }\n.tech-page [id] { scroll-margin-top: 150px; }\n\n\/* Contents bar *\/\n.tech-toc {\nborder-top: 1px solid var(--brain-border);\nborder-bottom: 1px solid var(--brain-border);\nbackground: var(--brain-bg-soft);\n}\n.tech-toc-inner {\ndisplay: flex;\nflex-wrap: wrap;\ngap: 10px;\npadding: 22px 0;\n}\n.tech-toc-label {\ndisplay: inline-flex;\nalign-items: center;\nmargin-right: 6px;\ncolor: var(--brain-muted);\nfont-size: 12px;\nfont-weight: 700;\nletter-spacing: 0.14em;\ntext-transform: uppercase;\n}\n#brain-infrastructure-page .tech-toc a {\ndisplay: inline-flex;\nalign-items: center;\nmin-height: 38px;\npadding: 7px 16px;\nborder: 1px solid var(--brain-border);\nborder-radius: 999px;\nbackground: rgba(255, 255, 255, 0.03);\ncolor: #e7e7e7;\nfont-size: 14px;\nline-height: 1.2;\ntext-decoration: none;\nwhite-space: nowrap;\ntransition: border-color .2s ease, background .2s ease, color .2s ease;\n}\n#brain-infrastructure-page .tech-toc a:hover {\nborder-color: var(--brain-accent-hover);\nbackground: rgba(0, 159, 216, 0.12);\ncolor: #fff;\n}\n.tech-toc a b {\nmargin-right: 8px;\ncolor: var(--brain-accent-hover);\nfont-size: 12px;\n}\n\n\/* Section heading *\/\n.tech-head { max-width: 900px; margin-bottom: 40px; }\n.tech-head p { color: var(--brain-muted); font-size: 18px; margin-bottom: 0; }\n.tech-subhead { margin: 64px 0 0; padding-top: 40px; border-top: 1px solid var(--brain-border); }\n.tech-subhead:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }\n\n\/* Mosaic *\/\n.tech-mosaic {\ndisplay: grid;\ngrid-template-columns: repeat(12, minmax(0, 1fr));\ngap: 20px;\n}\n.tech-mosaic + .tech-mosaic { margin-top: 20px; }\n.tech-tile {\ngrid-column: span 6;\npadding: 34px;\nborder: 1px solid var(--brain-border);\nborder-radius: 22px;\nbackground: var(--brain-card);\ntransition: border-color .25s ease, background .25s ease;\n}\n.tech-tile:hover { border-color: rgba(0, 159, 216, 0.55); background: var(--brain-card-hover); }\n.tech-tile.s4 { grid-column: span 4; }\n.tech-tile.s5 { grid-column: span 5; }\n.tech-tile.s7 { grid-column: span 7; }\n.tech-tile.s8 { grid-column: span 8; }\n.tech-tile.s12 { grid-column: span 12; }\n.tech-tile.accent { border-left: 4px solid var(--brain-accent); }\n.tech-tile.blue {\nborder-color: transparent;\nbackground: linear-gradient(140deg, #1A55B5 0%, #0d3270 100%);\n}\n.tech-tile.blue p, .tech-tile.blue li { color: rgba(255, 255, 255, 0.88) !important; }\n.tech-tile.blue .brain-layer-label { color: #9fdcff; }\n#brain-infrastructure-page .tech-tile h3 { font-size: 24px; }\n.tech-tile p { color: var(--brain-muted); }\n.tech-tile > :last-child { margin-bottom: 0; }\n\n\/* Inline links *\/\n#brain-infrastructure-page .tech-tile p a,\n#brain-infrastructure-page .tech-tile li a,\n#brain-infrastructure-page .tech-head p a {\ncolor: var(--brain-accent-hover);\ntext-decoration: underline;\ntext-decoration-thickness: 1px;\ntext-underline-offset: 3px;\n}\n#brain-infrastructure-page .tech-tile.blue p a,\n#brain-infrastructure-page .tech-tile.blue li a { color: #fff; }\n\n\/* Indented sub-paragraph lists *\/\n.tech-sub {\ndisplay: grid;\ngap: 12px;\nmargin: 18px 0 20px 26px;\npadding: 0 0 0 22px;\nborder-left: 2px solid var(--brain-accent);\nlist-style: none;\n}\n.tech-tile > .tech-sub:last-child { margin-bottom: 0; }\n.tech-sub li { position: relative; color: #d3d3d3; }\nul.tech-sub li::before {\nposition: absolute;\nleft: -23px;\ntop: 0.78em;\nwidth: 13px;\nheight: 2px;\ncontent: \"\";\nbackground: var(--brain-accent);\n}\nol.tech-sub { counter-reset: techstep; }\nol.tech-sub li { counter-increment: techstep; padding-left: 40px; }\nol.tech-sub li::before {\nposition: absolute;\nleft: 0;\ntop: 0.15em;\ncolor: var(--brain-accent-hover);\ncontent: counter(techstep, decimal-leading-zero);\nfont-size: 13px;\nfont-weight: 700;\nletter-spacing: 0.08em;\n}\n.tech-sub.cols2 { display: block; columns: 2; column-gap: 44px; }\n.tech-sub.cols2 li { break-inside: avoid; margin-bottom: 12px; }\n\n\/* Code, formula *\/\n.tech-page code {\npadding: 2px 7px;\nborder-radius: 6px;\nbackground: rgba(255, 255, 255, 0.08);\ncolor: #fff;\nfont-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\nfont-size: 0.88em;\n}\n\n\/* Table *\/\n.tech-table-wrap { overflow-x: auto; margin: 6px 0 22px; }\n.tech-table { width: 100%; border-collapse: collapse; font-size: 16px; }\n.tech-table th {\npadding: 12px 16px;\nborder-bottom: 1px solid var(--brain-accent);\ncolor: var(--brain-accent-hover);\nfont-size: 12px;\nfont-weight: 700;\nletter-spacing: 0.1em;\ntext-align: left;\ntext-transform: uppercase;\n}\n.tech-table td {\npadding: 13px 16px;\nborder-bottom: 1px solid var(--brain-border);\ncolor: #dedede;\n}\n.tech-table td:last-child { font-variant-numeric: tabular-nums; }\n.tech-table tr:hover td { background: rgba(255, 255, 255, 0.03); }\n\n\/* Videos *\/\n.tech-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }\n.tech-video h4 { margin: 18px 0 12px; }\n.tech-video .brain-button { min-height: 44px; padding: 10px 20px; font-size: 14px; }\n\n\/* Link row *\/\n.tech-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 40px; }\n.tech-links .brain-button { min-height: 46px; padding: 11px 20px; font-size: 14px; }\n\n@media (max-width: 900px) {\n.tech-tile, .tech-tile.s4, .tech-tile.s5, .tech-tile.s7, .tech-tile.s8 { grid-column: span 12; }\n.tech-videos { grid-template-columns: 1fr; }\n.tech-sub.cols2 { columns: 1; }\n}\n@media (max-width: 560px) {\n.tech-tile { padding: 26px; }\n.tech-sub { margin-left: 8px; }\n}\n\n#brain-infrastructure-page .tech-table, #brain-infrastructure-page .tech-table th, #brain-infrastructure-page .tech-table td { border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; background-color: transparent; }\n#brain-infrastructure-page .tech-table { border: 0 !important; }\n<\/style>\n\n<div id=\"brain-infrastructure-page\" class=\"chain-page tech-page\">\n\n<section class=\"brain-hero\"><div class=\"brain-container\"><div class=\"brain-hero-content\">\n<div class=\"brain-eyebrow\"><a href=\"\/technologies\/\">Technologies<\/a>&nbsp;\/ PQC PKI for AI<\/div>\n<h1>PQC PKI for AI<\/h1>\n<p class=\"brain-lead\">A post-quantum public-key cryptography infrastructure stack built for AI factories and their workloads: certificate issuance, real-time revocation checking and trusted timestamping, all using NIST-standardised post-quantum algorithms.<\/p>\n<div class=\"tech-tile blue\" style=\"max-width: 760px; margin: 28px 0 28px;\"><span class=\"brain-layer-label\">Built for automation<\/span>\n<p>A major goal is to let <em>automated agents and code<\/em> that operate under AI control request and use PKI services in the most robust and safe way possible, without sacrificing productivity at scale. The APIs and workflows are built so that machines can enrol, renew, check status and timestamp evidence automatically, while the security controls remain strict enough for high-stakes AI factory environments.<\/p><\/div>\n<div class=\"brain-hero-meta\"><span class=\"brain-pill\">Apache License 2.0<\/span><span class=\"brain-pill\">Written in C++<\/span><span class=\"brain-pill\">Security coding<\/span><span class=\"brain-pill\">NIST post-quantum cryptography algorithms<\/span><\/div>\n<div class=\"brain-button-row\">\n<a class=\"brain-button\" href=\"#the-three-foundations-in-detail\">The Three Foundations<\/a>\n<a class=\"brain-button brain-button-secondary\" href=\"#bastion-pki\">Code Repositories<\/a>\n<\/div>\n<\/div><\/div><\/section>\n\n<nav class=\"tech-toc\" aria-label=\"On this page\"><div class=\"brain-container tech-toc-inner\">\n<span class=\"tech-toc-label\">On this page<\/span>\n<a href=\"#at-a-glance\"><b>01<\/b>At a glance<\/a>\n<a href=\"#the-three-foundations-in-detail\"><b>02<\/b>The three foundations<\/a>\n<a href=\"#bastion-pki\"><b>\u00b7<\/b>bastion-pki<\/a>\n<a href=\"#bastion-ocspd\"><b>\u00b7<\/b>bastion-ocspd<\/a>\n<a href=\"#bastion-tsa-server\"><b>\u00b7<\/b>bastion-tsa-server<\/a>\n<a href=\"#post-quantum-cryptography\"><b>03<\/b>Post-quantum cryptography<\/a>\n<a href=\"#relevance-to-ai-factories\"><b>04<\/b>Relevance to AI factories<\/a>\n<a href=\"#api-access-and-automation\"><b>05<\/b>API access and automation<\/a>\n<a href=\"#performance\"><b>06<\/b>Performance<\/a>\n<a href=\"#security-design\"><b>07<\/b>Security design<\/a>\n<a href=\"#deployment\"><b>08<\/b>Deployment<\/a>\n<\/div><\/nav>\n\n<!-- 01 -->\n<section id=\"at-a-glance\" class=\"brain-section\"><div class=\"brain-container\">\n<div class=\"tech-head\"><div class=\"brain-eyebrow\">01 \/ At a glance<\/div><h2>At a glance<\/h2><\/div>\n<div class=\"tech-mosaic\">\n<div class=\"tech-tile s12 accent\"><span class=\"brain-layer-label\">What it is<\/span>\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Post-quantum_cryptography\" target=\"_blank\" rel=\"noopener\">Post-quantum cryptography<\/a> (PQC) PKI for AI is a post-quantum public-key infrastructure stack built for AI factories and their workloads. It provides <em>certificate issuance, real-time revocation checking and trusted timestamping<\/em>, all using <a href=\"https:\/\/www.nist.gov\/news-events\/news\/2024\/08\/nist-releases-first-3-finalized-post-quantum-encryption-standards\" target=\"_blank\" rel=\"noopener\">NIST-standardised post-quantum algorithms<\/a>. The stack is designed to be exposed to the Internet directly, operated through APIs, and scaled to thousands of operations per second.<\/p><\/div>\n<div class=\"tech-tile s12\"><span class=\"brain-layer-label\">Compiled policy<\/span>\n<p>Automation may include the utilisation of <a href=\"https:\/\/en.wikipedia.org\/wiki\/Simple_Certificate_Enrolment_Protocol\" target=\"_blank\" rel=\"noopener\">SCEP<\/a>, the Simple Certificate Enrolment Protocol. Enrolment requests are evaluated against pre-compiled certificate profiles rather than parsed at runtime. Compiling profiles ahead of time gives fast, deterministic issuance and removes an entire class of runtime policy errors. A dedicated policy compiler turns YAML policy definitions into signed, hashed binary objects that the signing components accept.<\/p><\/div>\n<div class=\"tech-tile s6\"><span class=\"brain-layer-label\">Three foundations<\/span>\n<p>The stack consists of three foundations, provided as separate code packages:<\/p>\n<ul class=\"tech-sub\">\n<li><a href=\"#bastion-pki\">bastion-pki<\/a>, a post-quantum certificate authority.<\/li>\n<li><a href=\"#bastion-ocspd\">bastion-ocspd<\/a>, a high-performance <a href=\"https:\/\/en.wikipedia.org\/wiki\/Online_Certificate_Status_Protocol\" target=\"_blank\" rel=\"noopener\">OCSP<\/a> responder.<\/li>\n<li><a href=\"#bastion-tsa-server\">bastion-tsa-server<\/a>, an <a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc3161\" target=\"_blank\" rel=\"noopener\">RFC 3161<\/a> <a href=\"https:\/\/en.wikipedia.org\/wiki\/Trusted_timestamping\" target=\"_blank\" rel=\"noopener\">time-stamp authority<\/a>.<\/li>\n<\/ul><\/div>\n<div class=\"tech-tile s6\"><span class=\"brain-layer-label\">Secure by construction<\/span>\n<p>The code for all three foundations is written in C++ and developed according to <em>secure-coding standards<\/em>, with memory-safe patterns, strict input validation, hardening flags and exploit mitigations built into every release. All three code packages are released under the <a href=\"https:\/\/www.apache.org\/licenses\/LICENSE-2.0\" target=\"_blank\" rel=\"noopener\">Apache License 2.0<\/a>.<\/p>\n<p>Together they give AI factories, model-serving endpoints, data guards and customers the cryptographic identities, status checks and timestamped evidence needed for a zero-trust, post-quantum environment.<\/p><\/div>\n<\/div>\n<\/div><\/section>\n\n<!-- 02 -->\n<section id=\"the-three-foundations-in-detail\" class=\"brain-section brain-soft-section\"><div class=\"brain-container\">\n<div class=\"tech-head\"><div class=\"brain-eyebrow\">02 \/ Components<\/div><h2>The three foundations in detail<\/h2><\/div>\n\n<div id=\"bastion-pki\" class=\"tech-subhead\">\n<h3>bastion-pki<\/h3>\n<div class=\"tech-links\"><a class=\"brain-button brain-button-secondary\" href=\"https:\/\/gitlab.discoverer.bg\/vkolev\/bastion-pki\" target=\"_blank\" rel=\"noopener\">Code repository and documentation<\/a><\/div>\n<div class=\"tech-mosaic\">\n<div class=\"tech-tile s6 accent\">\n<p>bastion-pki is a certificate authority written in C++23, designed primarily for small and mid-size enterprises, with a modular design that can be extended to cover the needs of large enterprises. It is built for post-quantum signatures from the root down.<\/p>\n<p>The reference hierarchy has an offline <a href=\"https:\/\/doi.org\/10.6028\/NIST.FIPS.204\" target=\"_blank\" rel=\"noopener\">ML-DSA-87<\/a> root, two <a href=\"https:\/\/doi.org\/10.6028\/NIST.FIPS.204\" target=\"_blank\" rel=\"noopener\">ML-DSA-65<\/a> subordinate CAs, and one issuing CA under the first subordinate. <a href=\"https:\/\/en.wikipedia.org\/wiki\/RSA_(cryptosystem)\" target=\"_blank\" rel=\"noopener\">RSA<\/a> and <a href=\"https:\/\/en.wikipedia.org\/wiki\/Elliptic_Curve_Digital_Signature_Algorithm\" target=\"_blank\" rel=\"noopener\">ECDSA<\/a> CAs are supported only for keys imported from an existing PKI.<\/p><\/div>\n<div class=\"tech-tile s6 blue\"><span class=\"brain-layer-label\">Design goal<\/span>\n<p>The design goal is that no single person, and no single compromised host, can issue a certificate the officers did not approve, undo a revocation, or take a CA key. Every rule that decides what is signed lives in the signer, which has no network and is reached only through a Unix socket. Everything in front of it, including the admin API, the publisher and the object store, is treated as untrusted.<\/p><\/div>\n<div class=\"tech-tile s12\"><span class=\"brain-layer-label\">Technical capabilities<\/span>\n<ul class=\"tech-sub cols2\">\n<li>Offline root operated in ceremonies, with requests and results carried on transfer media.<\/li>\n<li>Subordinate signers without a network, reached only through a Unix socket.<\/li>\n<li>At least three security officers per CA; the officer who assembles a request counts as one approval.<\/li>\n<li>Signer-issued challenges, single-use request IDs, and approvals bound to the CA key, the profile set and the requester.<\/li>\n<li>Certificate profiles compiled from YAML into deterministic binary objects, pinned by hash in the signer.<\/li>\n<li>One signing object per certificate, containing the complete certificate content, computed independently by the RA, the approving officer and the signer.<\/li>\n<li>Hash-chained journal with signed checkpoints, witnesses and rollback detection.<\/li>\n<li>Revocation with certificateHold and release; every CRL is a superset of the previous one.<\/li>\n<li>OCSP served by bastion-ocspd from the CA's CRL only.<\/li>\n<li>2-of-n backup of the CA key, sealed to each officer's <a href=\"https:\/\/doi.org\/10.6028\/NIST.FIPS.203\" target=\"_blank\" rel=\"noopener\">ML-KEM-1024<\/a> key, and journaled restore.<\/li>\n<li>Automated issuance through compiled rules with API keys, limits and an end date.<\/li>\n<li>SCEP (<a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc8894\" target=\"_blank\" rel=\"noopener\">RFC 8894<\/a>) enrolment for devices.<\/li>\n<li>Publication of CA certificates and CRLs through <a href=\"https:\/\/directory.fedoraproject.org\/\" target=\"_blank\" rel=\"noopener\">389 Directory Server<\/a> over LDAPS.<\/li>\n<\/ul><\/div>\n<\/div><\/div>\n\n<div id=\"bastion-ocspd\" class=\"tech-subhead\">\n<h3>bastion-ocspd<\/h3>\n<div class=\"tech-links\"><a class=\"brain-button brain-button-secondary\" href=\"https:\/\/gitlab.discoverer.bg\/vkolev\/bastion-ocspd\" target=\"_blank\" rel=\"noopener\">Code repository and documentation<\/a><\/div>\n<div class=\"tech-mosaic\">\n<div class=\"tech-tile s5 accent\">\n<p>bastion-ocspd is a hardened, high-performance OCSP responder written in C++20 on top of <a href=\"https:\/\/www.openssl.org\/\" target=\"_blank\" rel=\"noopener\">OpenSSL 3<\/a>. It is built to face the Internet directly.<\/p>\n<p>One process serves any number of independent Certificate Authorities, each with its own delegated responder. Responses are signed on a pool of worker threads, and signing capacity is shared fairly between issuers and clients under attack.<\/p><\/div>\n<div class=\"tech-tile s7\"><span class=\"brain-layer-label\">Technical capabilities<\/span>\n<ul class=\"tech-sub\">\n<li><a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc6960\" target=\"_blank\" rel=\"noopener\">RFC 6960<\/a> compliant OCSP responder.<\/li>\n<li>Multiple independent CAs in one process, each with its own delegated responder.<\/li>\n<li>Per-CA chain validation against a pinned trust anchor.<\/li>\n<li>CRL validation, rollback protection and hot reload without dropping requests.<\/li>\n<li>Explicit error answers: unauthorized for unknown CAs, malformedRequest for unsupported CertIDs, tryLater when the CRL is past its nextUpdate.<\/li>\n<li>Post-quantum delegated responders with OpenSSL 3.5+: <a href=\"https:\/\/doi.org\/10.6028\/NIST.FIPS.204\" target=\"_blank\" rel=\"noopener\">ML-DSA<\/a> and <a href=\"https:\/\/doi.org\/10.6028\/NIST.FIPS.205\" target=\"_blank\" rel=\"noopener\">SLH-DSA<\/a>, per CA, alongside ECDSA CAs.<\/li>\n<li>HTTP POST and GET, with GET answers carrying <a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc5019\" target=\"_blank\" rel=\"noopener\">RFC 5019<\/a> cache headers.<\/li>\n<li>Pre-signed responses for serials the CA has issued, so floods of distinct serials cost no signature.<\/li>\n<li>Built for direct Internet exposure: non-blocking request reading, strict <a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc7230\" target=\"_blank\" rel=\"noopener\">HTTP<\/a> parsing, per-client rate and connection limits, allow and deny lists, and a signed-response cache.<\/li>\n<li>Admin API over mutual <a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc8446\" target=\"_blank\" rel=\"noopener\">TLS 1.3<\/a> to onboard CAs, rotate chains and responders, and decommission CAs.<\/li>\n<li>Prometheus metrics on a separate listener.<\/li>\n<\/ul><\/div>\n<\/div><\/div>\n\n<div id=\"bastion-tsa-server\" class=\"tech-subhead\">\n<h3>bastion-tsa-server<\/h3>\n<div class=\"tech-links\"><a class=\"brain-button brain-button-secondary\" href=\"https:\/\/gitlab.discoverer.bg\/vkolev\/bastion-tsa-server\" target=\"_blank\" rel=\"noopener\">Code repository and documentation<\/a><\/div>\n<div class=\"tech-mosaic\">\n<div class=\"tech-tile s5 accent\">\n<p>bastion-tsa-server is an RFC 3161 Time-Stamp Authority built for direct Internet exposure. It runs several named signers side by side, including ECDSA, RSA, <a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc8032\" target=\"_blank\" rel=\"noopener\">Ed25519<\/a>, and post-quantum ML-DSA or SLH-DSA.<\/p>\n<p>Clients POST a DER TimeStampReq to <code>\/tsa\/&lt;signer id&gt;<\/code> and receive a TimeStampResp. Each signer has its own key, TSA certificate, issuer chain pinned to a trust anchor, policy OID, accuracy and accepted digests.<\/p><\/div>\n<div class=\"tech-tile s7\"><span class=\"brain-layer-label\">Technical capabilities<\/span>\n<ul class=\"tech-sub\">\n<li>Multiple signers in one server, each independently configurable and rotatable.<\/li>\n<li>Post-quantum ML-DSA and SLH-DSA signers alongside classical ones.<\/li>\n<li>Admin API over mutual TLS 1.3 for installing and rotating signers at runtime.<\/li>\n<li>Degraded mode: the server starts and stays manageable even when no signer is usable.<\/li>\n<li>Tokens issued only while the clock is synchronised and within the signer's accuracy.<\/li>\n<li>HSM support through <a href=\"https:\/\/docs.oasis-open.org\/pkcs11\/pkcs11-base\/v3.0\/os\/pkcs11-base-v3.0-os.html\" target=\"_blank\" rel=\"noopener\">PKCS#11<\/a>.<\/li>\n<li>Prometheus metrics and readiness endpoint.<\/li>\n<\/ul><\/div>\n<\/div><\/div>\n<\/div><\/section>\n\n<!-- 03 -->\n<section id=\"post-quantum-cryptography\" class=\"brain-section\"><div class=\"brain-container\">\n<div class=\"tech-head\"><div class=\"brain-eyebrow\">03 \/ Cryptography<\/div><h2>Post-quantum cryptography<\/h2><\/div>\n<div class=\"tech-mosaic\">\n<div class=\"tech-tile s7 accent\"><p>The stack uses the NIST post-quantum standards as implemented in OpenSSL 3.5:<\/p>\n<ul class=\"tech-sub\">\n<li>ML-DSA (<a href=\"https:\/\/doi.org\/10.6028\/NIST.FIPS.204\" target=\"_blank\" rel=\"noopener\">FIPS 204<\/a>) for digital signatures.<\/li>\n<li>SLH-DSA (<a href=\"https:\/\/doi.org\/10.6028\/NIST.FIPS.205\" target=\"_blank\" rel=\"noopener\">FIPS 205<\/a>) for conservative, hash-based signatures.<\/li>\n<li>ML-KEM (<a href=\"https:\/\/doi.org\/10.6028\/NIST.FIPS.203\" target=\"_blank\" rel=\"noopener\">FIPS 203<\/a>) for key encapsulation in backups and key sealing.<\/li>\n<\/ul><\/div>\n<div class=\"tech-tile s5 blue\"><p style=\"font-size:18px;\">This means certificates, revocation responses and timestamps can be verified by relying parties that are preparing for a post-quantum world, while classical algorithms remain available for backwards compatibility during transition.<\/p><\/div>\n<\/div>\n<\/div><\/section>\n\n<!-- 04 -->\n<section id=\"relevance-to-ai-factories\" class=\"brain-section brain-soft-section\"><div class=\"brain-container\">\n<div class=\"tech-head\"><div class=\"brain-eyebrow\">04 \/ AI factories<\/div><h2>Relevance to AI factories<\/h2>\n<p>AI factories handle sensitive training data, model weights, inference requests and customer agreements. A PKI for such an environment must do more than issue TLS certificates:<\/p><\/div>\n<div class=\"tech-mosaic\">\n<div class=\"tech-tile s6\"><span class=\"brain-card-number\">01<\/span><h3>Identity for data guards and model-serving endpoints<\/h3><p>Each component can receive a short-lived, post-quantum certificate tied to a tenant or a customer contract.<\/p><\/div>\n<div class=\"tech-tile s6\"><span class=\"brain-card-number\">02<\/span><h3>Revocation that keeps up<\/h3><p>bastion-ocspd answers status requests in real time, so a compromised endpoint can be blocked without waiting for a CRL to propagate.<\/p><\/div>\n<div class=\"tech-tile s6\"><span class=\"brain-card-number\">03<\/span><h3>Timestamped evidence<\/h3><p>bastion-tsa-server provides RFC 3161 timestamps for model releases, dataset versions, audit log entries and signed customer agreements.<\/p><\/div>\n<div class=\"tech-tile s6\"><span class=\"brain-card-number\">04<\/span><h3>Cross-federation trust<\/h3><p>The CA hierarchy, OCSP responders and TSA can be shared by a federation of AI factories, each running its own contract store and validators, with one root of trust.<\/p><\/div>\n<\/div>\n<\/div><\/section>\n\n<!-- 05 -->\n<section id=\"api-access-and-automation\" class=\"brain-section\"><div class=\"brain-container\">\n<div class=\"tech-head\"><div class=\"brain-eyebrow\">05 \/ Automation<\/div><h2>API access and automation<\/h2><p>The stack is built for API-driven operation.<\/p><\/div>\n<div class=\"tech-mosaic\">\n<div class=\"tech-tile s4\"><span class=\"brain-layer-label\">bastion-pki provides<\/span><ul class=\"tech-sub\">\n<li>Admin API over mutual TLS 1.3 for officers and automation.<\/li>\n<li>Enrolment listener for automated certificate issuance by rule.<\/li>\n<li>SCEP listener for device enrolment.<\/li><\/ul><\/div>\n<div class=\"tech-tile s4\"><span class=\"brain-layer-label\">bastion-ocspd provides<\/span><ul class=\"tech-sub\">\n<li>Admin API over mutual TLS 1.3 to onboard CAs and rotate responders at runtime.<\/li>\n<li>Public OCSP endpoint over HTTP.<\/li><\/ul><\/div>\n<div class=\"tech-tile s4\"><span class=\"brain-layer-label\">bastion-tsa-server provides<\/span><ul class=\"tech-sub\">\n<li>Admin API over mutual TLS 1.3 to create signers, generate keys, upload certificates and activate generations.<\/li>\n<li>Public timestamp endpoint.<\/li><\/ul><\/div>\n<div class=\"tech-tile s12 accent\"><p>All admin APIs use TLS 1.3 with client certificates, and every change is logged with the client's common name.<\/p><\/div>\n<\/div>\n<\/div><\/section>\n\n<!-- 06 -->\n<section id=\"performance\" class=\"brain-section brain-soft-section\"><div class=\"brain-container\">\n<div class=\"tech-head\"><div class=\"brain-eyebrow\">06 \/ Performance<\/div><h2>Performance<\/h2><\/div>\n<div class=\"tech-mosaic\">\n<div class=\"tech-tile s5 accent\">\n<p>bastion-ocspd and bastion-tsa-server are designed for high-throughput, low-latency environments.<\/p>\n<p>On server-class hardware, bastion-ocspd scales with worker threads and event loops; the exact throughput depends on the responder key type and the fraction of requests that can be answered from the pre-signed cache.<\/p><\/div>\n<div class=\"tech-tile s7\"><span class=\"brain-layer-label\">bastion-tsa-server throughput<\/span>\n<p>On a server with 2 x AMD EPYC 7H12 (128 cores), with the load generator on a second node over InfiniBand:<\/p>\n<div class=\"tech-table-wrap\"><table class=\"tech-table\">\n<thead><tr><th>Signer key<\/th><th>Timestamp tokens per second<\/th><\/tr><\/thead>\n<tbody>\n<tr><td>ECDSA P-256<\/td><td>about 135,000<\/td><\/tr>\n<tr><td>Ed25519<\/td><td>about 137,000<\/td><\/tr>\n<tr><td>ECDSA P-384<\/td><td>about 64,000<\/td><\/tr>\n<tr><td>ML-DSA-44 \/ -65 \/ -87<\/td><td>about 20,200 \/ 12,800 \/ 11,500<\/td><\/tr>\n<tr><td>RSA 3072<\/td><td>about 12,000<\/td><\/tr>\n<tr><td>SLH-DSA-SHA2-128f \/ -128s<\/td><td>about 3,600 \/ 160<\/td><\/tr>\n<\/tbody><\/table><\/div>\n<p>This makes the TSA suitable for high-volume timestamping of inference logs, model checkpoints and audit events.<\/p><\/div>\n<\/div>\n<\/div><\/section>\n\n<!-- 07 -->\n<section id=\"security-design\" class=\"brain-section\"><div class=\"brain-container\">\n<div class=\"tech-head\"><div class=\"brain-eyebrow\">07 \/ Security<\/div><h2>Security design<\/h2><p>The stack follows a bastion model: the hardened parts face the network, while the keys stay behind.<\/p><\/div>\n<div class=\"tech-mosaic\">\n<div class=\"tech-tile s8\"><ul class=\"tech-sub\">\n<li>CA keys live in signers with no network access, reached only through Unix sockets.<\/li>\n<li>Responder and TSA keys live in OpenSSL's secure heap, locked in memory and excluded from core dumps.<\/li>\n<li>Admin APIs require mutual TLS 1.3 with authorised client certificates.<\/li>\n<li>Every signing decision is independently verified by the signer, the officer tool and the RA.<\/li>\n<li>Journals are hash-chained and checkpointed, with rollback detection.<\/li>\n<li>Backups are split with Shamir's scheme and sealed to officers' ML-KEM-1024 custody keys.<\/li>\n<li>Builds use hardening flags and exploit mitigations: PIE, full RELRO, stack protector, fortified libc calls and CET markings on x86_64.<\/li>\n<\/ul><\/div>\n<div class=\"tech-tile s4 blue\"><span class=\"brain-layer-label\">Secure coding<\/span>\n<p>Secure-coding practices for each component are documented explicitly:<\/p>\n<ul class=\"tech-sub\" style=\"border-left-color:#9fdcff;\">\n<li><a href=\"https:\/\/gitlab.discoverer.bg\/vkolev\/bastion-pki\/-\/blob\/bastion-pki\/SECURE_CODING.md\" target=\"_blank\" rel=\"noopener\">bastion-pki\/secure coding<\/a><\/li>\n<li><a href=\"https:\/\/gitlab.discoverer.bg\/vkolev\/bastion-ocspd\/-\/blob\/bastion-ocspd\/SECURE_CODING.md\" target=\"_blank\" rel=\"noopener\">bastion-ocspd\/secure coding<\/a><\/li>\n<li><a href=\"https:\/\/gitlab.discoverer.bg\/vkolev\/bastion-tsa-server\/-\/blob\/main\/SECURE_CODING.md\" target=\"_blank\" rel=\"noopener\">bastion-tsa-server\/secure coding<\/a><\/li>\n<\/ul><\/div>\n<\/div>\n<\/div><\/section>\n\n<!-- 08 -->\n<section id=\"deployment\" class=\"brain-section brain-soft-section\"><div class=\"brain-container\">\n<div class=\"tech-head\"><div class=\"brain-eyebrow\">08 \/ Deployment<\/div><h2>Deployment<\/h2><\/div>\n<div class=\"tech-mosaic\">\n<div class=\"tech-tile s7 accent\">\n<p>The components are built with CMake and installed under <code>\/opt\/&lt;component&gt;-&lt;version&gt;<\/code> by default. They are designed to run and be operated as non-root users: each service runs under its own unprivileged account in a hardened systemd unit, and routine administration is done without root access. This non-root design removes a common privilege escalation path and strengthens the overall product.<\/p>\n<p>Container images are built with Podman, pinned by image ID, and deployed with firewall rules in a dedicated nftables table.<\/p><\/div>\n<div class=\"tech-tile s5\"><span class=\"brain-layer-label\">Typical deployment layout<\/span>\n<ul class=\"tech-sub\">\n<li><code>pkisign<\/code> runs the signers on a volume of their own.<\/li>\n<li><code>pkidev<\/code> runs the admin API and directory server.<\/li>\n<li><code>pkipub<\/code> runs the responders and repositories that face the network.<\/li>\n<\/ul><\/div>\n<\/div>\n<\/div><\/section>\n\n\n\n<\/div>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6216370 elementor-widget elementor-widget-spacer\" data-id=\"6216370\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Technologies&nbsp;\/ PQC PKI for AI PQC PKI for AI A post-quantum public-key cryptography infrastructure stack built for AI factories and their workloads: certificate issuance, real-time revocation checking and trusted timestamping, all using NIST-standardised post-quantum algorithms. Built for automation A major goal is to let automated agents and code that operate under AI control request and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1986,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"iawp_total_views":41,"footnotes":""},"class_list":["post-1988","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/brainplusplus.bg\/bg\/wp-json\/wp\/v2\/pages\/1988","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/brainplusplus.bg\/bg\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/brainplusplus.bg\/bg\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/brainplusplus.bg\/bg\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/brainplusplus.bg\/bg\/wp-json\/wp\/v2\/comments?post=1988"}],"version-history":[{"count":10,"href":"https:\/\/brainplusplus.bg\/bg\/wp-json\/wp\/v2\/pages\/1988\/revisions"}],"predecessor-version":[{"id":2033,"href":"https:\/\/brainplusplus.bg\/bg\/wp-json\/wp\/v2\/pages\/1988\/revisions\/2033"}],"up":[{"embeddable":true,"href":"https:\/\/brainplusplus.bg\/bg\/wp-json\/wp\/v2\/pages\/1986"}],"wp:attachment":[{"href":"https:\/\/brainplusplus.bg\/bg\/wp-json\/wp\/v2\/media?parent=1988"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}