Certificate verification and client-side attestation integration in dstack
Certificate Client Security
The certificate client component serves as the critical interface between applications and dstack’s hardware-backed certificate authority system. This component handles client-side certificate requests and signing operations while integrating comprehensive hardware attestation verification, ensuring that every certificate issued is cryptographically bound to verified trusted execution environments.
Security Architecture and Trust Model
The cert-client implements a dual-mode certificate authority system that supports both local CA operations and remote KMS-based signing with full attestation verification. In local mode, the system performs direct CA certificate signing, while KMS mode establishes remote attestation through RA-RPC clients with mutual TLS authentication. This flexibility allows the system to operate in various deployment scenarios while maintaining consistent security guarantees.The cryptographic foundation relies entirely on ECDSA P-256 SHA-256 for all certificate signing operations, ensuring industry-standard elliptic curve cryptography throughout the system. Certificate signing requests incorporate PKCS#8 DER encoding and ASN.1 signature verification, with all signatures validated against embedded public keys using the ring cryptography library’s ECDSA implementation.
Hardware Attestation Integration
The core security mechanism integrates Intel TDX (Trust Domain Extensions) attestation directly into X.509 certificates through a sophisticated quote generation and embedding process. The system generates TDX quotes containing hardware measurements and embeds them as custom certificate extensions using enterprise-registered OIDs. This attestation process creates an unbreakable cryptographic binding between certificate public keys and hardware report data through SHA-512 hashing.The attestation system defines specific content types for quote generation, covering KMS root CA verification, RA-TLS certificates, and application-specific data. Report data generation supports configurable hash algorithms including SHA-256, SHA-384, SHA-512, and SHA-3 variants, with SHA-512 serving as the default for maximum security.
Trusted Computing Base Validation
Comprehensive TCB validation prevents execution in insecure environments by implementing strict security policies. For TDX environments, debug mode execution is explicitly prohibited, ensuring that certificates can only be generated in production-ready hardware. This validation extends to SGX enclaves, enforcing production-only execution by checking debug attributes and preventing any certificate generation in development or debugging scenarios.The system implements cryptographic event log replay functionality to ensure runtime integrity through RTMR (Runtime Measurement Register) verification. Event log chains are validated using SHA-384 hashing, with measurements verified against hardware-reported values to prevent runtime tampering and ensure execution environment integrity.
Certificate Extension Security and Verification
Custom X.509 extensions embed attestation data using carefully structured DER encoding. Quote extensions store raw TDX quotes, while event logs are JSON-serialized and embedded for comprehensive measurement verification. Application identity becomes cryptographically bound through specialized app-id extensions, enabling fine-grained policy enforcement based on application identity and deployment configuration.The RA-RPC client implements comprehensive TLS security with integrated attestation verification. Client certificates undergo validation through hardware quote verification, ensuring that remote endpoints execute within trusted environments. The system extracts attestation data from peer certificates and validates against Intel’s Provisioning Certificate Caching Service (PCCS) infrastructure for complete trust chain verification.
Key Provider Integration and Certificate Signing
The certificate request process supports multiple key provider modes with distinct security models designed for different operational requirements. Local key providers utilize direct CA operations for simplified deployments, while KMS providers establish temporary certificate authority relationships through RA-TLS certificate generation. This approach enables secure key escrow while maintaining strict hardware attestation requirements.Certificate signing requests implement mandatory confirmation strings to prevent unauthorized signing operations, with all requests including hardware quotes and event logs when attestation is enabled. This ensures that every certificate issued is cryptographically bound to execution environment measurements, creating an audit trail that can be independently verified.
Verification Pipeline and Application Identity
The attestation verification pipeline implements multi-stage validation including quote parsing, collateral verification through PCCS, and RTMR consistency checking. Report data validation ensures that certificate public keys match attested measurements, effectively preventing key substitution attacks and maintaining the integrity of the entire certificate issuance process.The system extracts comprehensive application metadata from event logs, including application identifiers, compose file hashes, and instance identifiers. This capability enables sophisticated policy enforcement based on application identity and deployment configuration, allowing organizations to implement fine-grained access controls and compliance requirements.
Security Properties and Compliance
The implementation adheres to X.509 certificate standards while extending functionality through custom OIDs registered under the enterprise namespace. The system maintains backward compatibility through conditional feature inclusion and graceful degradation for non-TEE environments, ensuring broad applicability while preserving security benefits where hardware support is available.Certificate configuration supports comprehensive usage restrictions including server authentication, client authentication, and extended key usage purposes. Subject alternative names and organizational constraints provide additional policy enforcement mechanisms, while flexible trust store configuration supports both built-in root certificate support and custom CA certificate injection for air-gapped deployments.The cert-client security model fundamentally depends on underlying TDX hardware security guarantees and PCCS infrastructure reliability. All cryptographic operations rely on hardware random number generation and secure key storage within the TEE environment, with the attestation verification pipeline requiring network connectivity for quote validation, which may impact certain deployment scenarios but ensures comprehensive security validation.
⌘I
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"dstack","colors":{"primary":"#0069ED","light":"#4D9CFF","dark":"#0050B4"},"logo":{"light":"https://mintcdn.com/phalanetwork/EDH2CSxg-w7_HARR/docs/public/logo/light.png?fit=max\u0026auto=format\u0026n=EDH2CSxg-w7_HARR\u0026q=85\u0026s=76209a44c466cba578ae1698c948891e","dark":"https://mintcdn.com/phalanetwork/EDH2CSxg-w7_HARR/docs/public/logo/dark.png?fit=max\u0026auto=format\u0026n=EDH2CSxg-w7_HARR\u0026q=85\u0026s=e18c38e871c30bced58dfd894c166322"},"favicon":"/docs/public/favicon.png","api":{"mdx":{"auth":{"method":"bearer"},"server":"https://api.dstack.dev"}},"background":{"image":"https://mintlify.s3.us-west-1.amazonaws.com/phalanetwork/docs/public/background.png"},"navbar":{"links":[{"label":"Hosted by Phala - GitHub","href":"https://github.com/Dstack-TEE/dstack"}],"primary":{"type":"button","label":"Publications","href":"https://collective.flashbots.net/t/dstack-speedrunning-a-p2p-confidential-vm/3876"}},"footer":{"socials":{"github":"https://github.com/Dstack-TEE/dstack","twitter":"https://twitter.com/PhalaNetwork","discord":"https://discord.gg/phala"},"links":[{"items":[{"label":"📕 Authors Note -- TEE Guide","href":"https://www.intothebytecode.com/46-andrew-miller/"}]},{"items":[{"label":"Eliza AI Deploys on the dStack 🤯","href":"https://www.youtube.com/watch?v=QkGLilgQ2Yc"},{"label":"DStack Worker Agents using TEE 🤯","href":"https://www.youtube.com/watch?v=MCUWLUZuqJc"}]},{"items":[{"label":"📺 Phala dStack MCP agent video guide","href":"https://www.youtube.com/watch?v=qG-9f66z-G8"}]}]},"integrations":{"ga4":{"measurementId":"G-XXXXXXXXXX"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"phalanetwork","hasAudioNarration":false,"actualSubdomain":"phalanetwork","customDomains":[],"gitSource":{"type":"github","owner":"dylanckawalec","repo":"dstack","deployBranch":"docs","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae928cb204c106d987d0d82:success","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"Security + Research","count":38},{"language":"default","tag":"Key Component Infrastructure","count":30},{"language":"default","tag":"Getting Started","count":23},{"language":"default","tag":"Cloud Deployment Preparation Manual","count":15},{"language":"default","tag":"Core Concepts","count":11},{"language":"default","tag":"Additional Reading","count":9},{"language":"default","tag":"kms","count":8},{"language":"default","tag":"vmm","count":8},{"language":"default","tag":"KSM, VMM \u0026 Gateway","count":7},{"language":"default","tag":"Advanced Deployment Steps","count":7}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"docs/security-research/extra-sec-ops/cert-client-security","slug":"/docs/security-research/extra-sec-ops/cert-client-security","pageMetadata":{"title":"Cert Client Security","description":"Certificate verification and client-side attestation integration in dstack","href":"/docs/security-research/extra-sec-ops/cert-client-security"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Certificate verification and client-side attestation integration in dstack\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={p:`p`,..._provideComponents(),...props.components},{Heading}=_components;if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`certificate-client-security`,children:`Certificate Client Security`}),`\n`,_jsx(_components.p,{children:`The certificate client component serves as the critical interface between applications and dstack’s hardware-backed certificate authority system. This component handles client-side certificate requests and signing operations while integrating comprehensive hardware attestation verification, ensuring that every certificate issued is cryptographically bound to verified trusted execution environments.`}),`\n`,_jsx(Heading,{level:`2`,id:`security-architecture-and-trust-model`,children:`Security Architecture and Trust Model`}),`\n`,_jsx(_components.p,{children:`The cert-client implements a dual-mode certificate authority system that supports both local CA operations and remote KMS-based signing with full attestation verification. In local mode, the system performs direct CA certificate signing, while KMS mode establishes remote attestation through RA-RPC clients with mutual TLS authentication. This flexibility allows the system to operate in various deployment scenarios while maintaining consistent security guarantees.`}),`\n`,_jsx(_components.p,{children:`The cryptographic foundation relies entirely on ECDSA P-256 SHA-256 for all certificate signing operations, ensuring industry-standard elliptic curve cryptography throughout the system. Certificate signing requests incorporate PKCS#8 DER encoding and ASN.1 signature verification, with all signatures validated against embedded public keys using the ring cryptography library’s ECDSA implementation.`}),`\n`,_jsx(Heading,{level:`2`,id:`hardware-attestation-integration`,children:`Hardware Attestation Integration`}),`\n`,_jsx(_components.p,{children:`The core security mechanism integrates Intel TDX (Trust Domain Extensions) attestation directly into X.509 certificates through a sophisticated quote generation and embedding process. The system generates TDX quotes containing hardware measurements and embeds them as custom certificate extensions using enterprise-registered OIDs. This attestation process creates an unbreakable cryptographic binding between certificate public keys and hardware report data through SHA-512 hashing.`}),`\n`,_jsx(_components.p,{children:`The attestation system defines specific content types for quote generation, covering KMS root CA verification, RA-TLS certificates, and application-specific data. Report data generation supports configurable hash algorithms including SHA-256, SHA-384, SHA-512, and SHA-3 variants, with SHA-512 serving as the default for maximum security.`}),`\n`,_jsx(Heading,{level:`2`,id:`trusted-computing-base-validation`,children:`Trusted Computing Base Validation`}),`\n`,_jsx(_components.p,{children:`Comprehensive TCB validation prevents execution in insecure environments by implementing strict security policies. For TDX environments, debug mode execution is explicitly prohibited, ensuring that certificates can only be generated in production-ready hardware. This validation extends to SGX enclaves, enforcing production-only execution by checking debug attributes and preventing any certificate generation in development or debugging scenarios.`}),`\n`,_jsx(_components.p,{children:`The system implements cryptographic event log replay functionality to ensure runtime integrity through RTMR (Runtime Measurement Register) verification. Event log chains are validated using SHA-384 hashing, with measurements verified against hardware-reported values to prevent runtime tampering and ensure execution environment integrity.`}),`\n`,_jsx(Heading,{level:`2`,id:`certificate-extension-security-and-verification`,children:`Certificate Extension Security and Verification`}),`\n`,_jsx(_components.p,{children:`Custom X.509 extensions embed attestation data using carefully structured DER encoding. Quote extensions store raw TDX quotes, while event logs are JSON-serialized and embedded for comprehensive measurement verification. Application identity becomes cryptographically bound through specialized app-id extensions, enabling fine-grained policy enforcement based on application identity and deployment configuration.`}),`\n`,_jsx(_components.p,{children:`The RA-RPC client implements comprehensive TLS security with integrated attestation verification. Client certificates undergo validation through hardware quote verification, ensuring that remote endpoints execute within trusted environments. The system extracts attestation data from peer certificates and validates against Intel’s Provisioning Certificate Caching Service (PCCS) infrastructure for complete trust chain verification.`}),`\n`,_jsx(Heading,{level:`2`,id:`key-provider-integration-and-certificate-signing`,children:`Key Provider Integration and Certificate Signing`}),`\n`,_jsx(_components.p,{children:`The certificate request process supports multiple key provider modes with distinct security models designed for different operational requirements. Local key providers utilize direct CA operations for simplified deployments, while KMS providers establish temporary certificate authority relationships through RA-TLS certificate generation. This approach enables secure key escrow while maintaining strict hardware attestation requirements.`}),`\n`,_jsx(_components.p,{children:`Certificate signing requests implement mandatory confirmation strings to prevent unauthorized signing operations, with all requests including hardware quotes and event logs when attestation is enabled. This ensures that every certificate issued is cryptographically bound to execution environment measurements, creating an audit trail that can be independently verified.`}),`\n`,_jsx(Heading,{level:`2`,id:`verification-pipeline-and-application-identity`,children:`Verification Pipeline and Application Identity`}),`\n`,_jsx(_components.p,{children:`The attestation verification pipeline implements multi-stage validation including quote parsing, collateral verification through PCCS, and RTMR consistency checking. Report data validation ensures that certificate public keys match attested measurements, effectively preventing key substitution attacks and maintaining the integrity of the entire certificate issuance process.`}),`\n`,_jsx(_components.p,{children:`The system extracts comprehensive application metadata from event logs, including application identifiers, compose file hashes, and instance identifiers. This capability enables sophisticated policy enforcement based on application identity and deployment configuration, allowing organizations to implement fine-grained access controls and compliance requirements.`}),`\n`,_jsx(Heading,{level:`2`,id:`security-properties-and-compliance`,children:`Security Properties and Compliance`}),`\n`,_jsx(_components.p,{children:`The implementation adheres to X.509 certificate standards while extending functionality through custom OIDs registered under the enterprise namespace. The system maintains backward compatibility through conditional feature inclusion and graceful degradation for non-TEE environments, ensuring broad applicability while preserving security benefits where hardware support is available.`}),`\n`,_jsx(_components.p,{children:`Certificate configuration supports comprehensive usage restrictions including server authentication, client authentication, and extended key usage purposes. Subject alternative names and organizational constraints provide additional policy enforcement mechanisms, while flexible trust store configuration supports both built-in root certificate support and custom CA certificate injection for air-gapped deployments.`}),`\n`,_jsx(_components.p,{children:`The cert-client security model fundamentally depends on underlying TDX hardware security guarantees and PCCS infrastructure reliability. All cryptographic operations rely on hardware random number generation and secure key storage within the TEE environment, with the attestation verification pipeline requiring network connectivity for quote validation, which may impact certain deployment scenarios but ensures comprehensive security validation.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Cert Client Security","description":"Certificate verification and client-side attestation integration in dstack","href":"/docs/security-research/extra-sec-ops/cert-client-security"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Certificate Client Security","slug":"certificate-client-security","depth":1,"children":[]},{"title":"Security Architecture and Trust Model","slug":"security-architecture-and-trust-model","depth":2,"children":[]},{"title":"Hardware Attestation Integration","slug":"hardware-attestation-integration","depth":2,"children":[]},{"title":"Trusted Computing Base Validation","slug":"trusted-computing-base-validation","depth":2,"children":[]},{"title":"Certificate Extension Security and Verification","slug":"certificate-extension-security-and-verification","depth":2,"children":[]},{"title":"Key Provider Integration and Certificate Signing","slug":"key-provider-integration-and-certificate-signing","depth":2,"children":[]},{"title":"Verification Pipeline and Application Identity","slug":"verification-pipeline-and-application-identity","depth":2,"children":[]},{"title":"Security Properties and Compliance","slug":"security-properties-and-compliance","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/phalanetwork/606b937e9aa8a45b/kms/auth-eth/jest.config.js","/_mintlify/custom/phalanetwork/689b27803445aca6/kms/auth-eth/jest.integration.config.js","/_mintlify/custom/phalanetwork/f0772d963a5076c3/vmm/src/x25519.js"],"subdomain":"phalanetwork","siteName":"dstack","title":"Cert Client Security - dstack","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T08:50:01.175Z","originalFileLocation":"docs/security-research/extra-sec-ops/cert-client-security.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Certificate verification and client-side attestation integration in dstack\">\u003cmeta data-mint-head name=\"application-name\" content=\"dstack\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cert Client Security - dstack\">\u003cmeta data-mint-head property=\"og:description\" content=\"Certificate verification and client-side attestation integration in dstack\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"dstack\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/cert-client-security\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://phalanetwork.mintlify.site/_mintlify/api/og/v2?division=extra-sec-ops\u0026amp;title=Cert+Client+Security\u0026amp;description=Certificate+verification+and+client-side+attestation+integration+in+dstack\u0026amp;theme=12e2df2e8005e235c2a7e23a\u0026amp;signature=93749aa59f5488032708daf089fda967777d96dc0ab1e9d306afa9ea10875729\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Cert Client Security - dstack\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Certificate verification and client-side attestation integration in dstack\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://phalanetwork.mintlify.site/_mintlify/api/og/v2?division=extra-sec-ops\u0026amp;title=Cert+Client+Security\u0026amp;description=Certificate+verification+and+client-side+attestation+integration+in+dstack\u0026amp;theme=12e2df2e8005e235c2a7e23a\u0026amp;signature=93749aa59f5488032708daf089fda967777d96dc0ab1e9d306afa9ea10875729\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/phalanetwork/nX_ZAYf0Un3cVxdB/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"dstack\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0069ED\">\u003clink data-mint-head rel=\"canonical\" href=\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/cert-client-security\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/security-research/extra-sec-ops/cert-client-security.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://phalanetwork.mintlify.app/#organization\",\"name\":\"dstack\",\"url\":\"https://phalanetwork.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/phalanetwork/EDH2CSxg-w7_HARR/docs/public/logo/light.png?fit=max\u0026auto=format\u0026n=EDH2CSxg-w7_HARR\u0026q=85\u0026s=76209a44c466cba578ae1698c948891e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://phalanetwork.mintlify.app#website\",\"name\":\"dstack\",\"url\":\"https://phalanetwork.mintlify.app\",\"publisher\":{\"@id\":\"https://phalanetwork.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/cert-client-security#webpage\",\"url\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/cert-client-security\",\"name\":\"Cert Client Security\",\"description\":\"Certificate verification and client-side attestation integration in dstack\",\"dateModified\":\"2026-01-07T08:50:01.175Z\",\"isPartOf\":{\"@id\":\"https://phalanetwork.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/cert-client-security#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/cert-client-security#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Additional Reading\",\"item\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/before-reading\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"extra-sec-ops\",\"item\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/certbot-security\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Cert Client Security\",\"item\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/cert-client-security\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/cert-client-security#article\",\"headline\":\"Cert Client Security\",\"name\":\"Cert Client Security\",\"description\":\"Certificate verification and client-side attestation integration in dstack\",\"url\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/cert-client-security\",\"mainEntityOfPage\":{\"@id\":\"https://phalanetwork.mintlify.app/docs/security-research/extra-sec-ops/cert-client-security#webpage\"},\"dateModified\":\"2026-01-07T08:50:01.175Z\",\"publisher\":{\"@id\":\"https://phalanetwork.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://phalanetwork.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"dstack\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"dstack\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/security-research/extra-sec-ops/cert-client-security.md","siteName":"dstack","nav":{"global":null,"dropdowns":[{"dropdown":"Overview","pages":[{"group":"Welcome to DStack","icon":{"style":"solid","name":"party-horn"},"pages":[{"title":"Getting Started","href":"/docs"}]},{"group":"Introduction to DStack","icon":{"style":"regular","name":"hand-wave"},"pages":[{"title":"What is DStack?","href":"/docs/overview/introduction"},{"title":"DStack Architecture","href":"/docs/overview/what-is-dstack"}]},{"group":"Additional Reading","icon":{"style":"regular","name":"head-side-gear"},"pages":[{"title":"TDX Technology","href":"/docs/overview/key-features"},{"title":"Value Add","href":"/docs/overview/benefits"},{"title":"Terms / Glossary","href":"/docs/overview/glossary"}]}]},{"dropdown":"Getting Started","icon":{"style":"solid","name":"stars"},"pages":[{"title":"Start deploying apps with dstack","href":"/docs/getting-started/start"},{"group":"Application Deployment Guide ","icon":{"style":"solid","name":"rocket-launch"},"pages":[{"title":"Getting Started Now","href":"/docs/getting-started/install/app-jupiter-guide"}]},{"group":"DStack Framework Installation","icon":{"style":"solid","name":"download"},"pages":[{"title":"Installation","href":"/docs/getting-started/install/installation"},{"group":"Steps","icon":{"style":"duotone","name":"shoe-prints"},"pages":[{"title":"Step 1: Prerequisites \u0026 System Requirements","href":"/docs/getting-started/install/step-1-prerequisites"},{"title":"Step 2: Update Your Server for dstack Installation","href":"/docs/getting-started/install/step-2-update-server"},{"title":"Step 3 – Install Required Packages for dstack","href":"/docs/getting-started/install/step-3-install-required-packages"},{"title":"Step 4 – Build and Run dstack components","href":"/docs/getting-started/install/step-4-install-dstack-runtime"}]}]},{"group":"Cloud Deployment Preparation Manual","icon":{"style":"solid","name":"cloud-bolt"},"pages":[{"title":"Application Deployment Overview","href":"/docs/getting-started/first-deployment-steps/first-deployment"},{"title":"Full Dstack Deployment Guide","href":"/docs/getting-started/first-deployment-steps/advanced-deloyment-steps/deployment-of-dstack-advanced"},{"group":"Advanced Deployment Steps","icon":{"style":"duotone","name":"shoe-prints"},"pages":[{"title":"Step 1: Clone and Setup Repository","href":"/docs/getting-started/first-deployment-steps/advanced-deloyment-steps/deployment-step-1"},{"title":"Step 2: Compile and Run dstack-vmm","href":"/docs/getting-started/first-deployment-steps/advanced-deloyment-steps/deployment-step-2"},{"title":"Step 3: Deploy the KmsAuth Contract","href":"/docs/getting-started/first-deployment-steps/advanced-deloyment-steps/deployment-step-3"},{"title":"Step 4: Deploy KMS into CVM","href":"/docs/getting-started/first-deployment-steps/advanced-deloyment-steps/deployment-step-4"},{"title":"Step 5: Deploy dstack-gateway in CVM","href":"/docs/getting-started/first-deployment-steps/advanced-deloyment-steps/deployment-step-5"},{"title":"Step 6: Deploy Additional VMM Instances","href":"/docs/getting-started/first-deployment-steps/advanced-deloyment-steps/deployment-step-6"},{"title":"Step 7: Deploy Applications","href":"/docs/getting-started/first-deployment-steps/advanced-deloyment-steps/deployment-step-7"}]},{"group":"dstack deployment for dummies","icon":{"style":"duotone","name":"shoe-prints"},"pages":[{"title":"How to Pull \u0026 inspect the example container image","href":"/docs/getting-started/first-deployment-steps/fd-1"},{"title":"How to Write the dstack deployment manifest","href":"/docs/getting-started/first-deployment-steps/fd-2"},{"title":"How to Sign \u0026 push the image to your private registry","href":"/docs/getting-started/first-deployment-steps/fd-3"},{"title":"How to Verify a TDX Attestation \u0026 perform a remote proof of trust","href":"/docs/getting-started/first-deployment-steps/fd-5"},{"title":"Expose an API endpoint via the Gateway","href":"/docs/getting-started/first-deployment-steps/fd-6"},{"title":"How to Update, roll back, and tear down safely","href":"/docs/getting-started/first-deployment-steps/fd-7"}]}]},{"group":"Examples","icon":{"style":"regular","name":"circle-stop"},"pages":[{"title":"Tool Deployment Tutorials","href":"/docs/tutorials/super-quick-start"}]}]},{"dropdown":"Core Concepts","icon":{"style":"solid","name":"comet"},"pages":[{"group":"Diving Deep","icon":{"style":"solid","name":"star-sharp"},"pages":[{"title":"Component Summary","href":"/docs/concepts/overview"},{"title":"Component Glossary","href":"/docs/concepts/core-glossary"}]},{"group":"KSM, VMM \u0026 Gateway","icon":{"style":"solid","name":"code"},"pages":[{"title":"High Level Component Overview","href":"/docs/concepts/basic-components"},{"group":"Core Implementations","icon":{"style":"solid","name":"list-ol"},"pages":[{"title":"VMM Core","href":"/docs/concepts/core-vmm"},{"title":"Gateway Core","href":"/docs/concepts/core-gateway"},{"title":"KMS Core","href":"/docs/concepts/core-kms"},{"title":"Guest-Agent Core","href":"/docs/concepts/core-guest-agent"},{"title":"DStack-Util Core","href":"/docs/concepts/core-tdxctl"},{"title":"DStack-OS Core","href":"/docs/concepts/core-os"}]}]},{"group":"DStack Component Architecture","icon":{"style":"thin","name":"sitemap"},"pages":[{"title":"System Architecture","href":"/docs/concepts/architecture"},{"title":"Networking Architecture","href":"/docs/concepts/networking"}]}]},{"dropdown":"Security + Research","icon":{"style":"solid","name":"shield-plus"},"pages":[{"title":"Security \u0026 Research Section","href":"/docs/security-research/overview"},{"group":"DStack crypto","icon":{"style":"solid","name":"key"},"pages":[{"title":"Cryptography","href":"/docs/security-research/security-model"}]},{"group":"Key Component Infrastructure","icon":{"style":"solid","name":"dice-four"},"pages":[{"group":"tdx","pages":[{"title":"TDX Attestation Overview","href":"/docs/security-research/tdx-att/tdx-overview"},{"title":"TDX Security Architecture","href":"/docs/security-research/tdx-att/tdx-security-arch"},{"title":"TDX Quote Generation and Verification","href":"/docs/security-research/tdx-att/tdx-quote-gen"},{"title":"TDX Verification Security Model","href":"/docs/security-research/tdx-att/tdx-verification-model"},{"title":"TDX Integration Security and Guest Agent","href":"/docs/security-research/tdx-att/tdx-integration-review"},{"title":"TDX Threat Model and Security Guarantees","href":"/docs/security-research/tdx-att/tdx-threat-model-garentees"},{"title":"TDX Cryptographic Implementation Details","href":"/docs/security-research/tdx-att/tdx-implementation"}]},{"group":"vmm","pages":[{"title":"VMM Security Overview","href":"/docs/security-research/vmm/vmm-overview"},{"title":"TDX Measurement and Attestation in VMM","href":"/docs/security-research/vmm/vmm-tdx-attestation-and-measurement"},{"title":"VMM Key Management Integration","href":"/docs/security-research/vmm/vmm-key-management"},{"title":"VMM Implementation Security Details","href":"/docs/security-research/vmm/vmm-implementation"},{"title":"VMM Attestation and Verification Mechanisms","href":"/docs/security-research/vmm/vmm-attestation-and-verification"},{"title":"VMM Resource Protection and DoS Prevention","href":"/docs/security-research/vmm/vmm-dos-protection"},{"title":"VMM Security Verification Procedures","href":"/docs/security-research/vmm/vmm-procedures"},{"title":"VMM Integration Security Architecture","href":"/docs/security-research/vmm/vmm-integration-arch"}]},{"group":"gateway","pages":[{"title":"Gateway Security Overview","href":"/docs/security-research/gate/gate-overview"},{"title":"Gateway CVM Registration and Attestation","href":"/docs/security-research/gate/gate-cvm-registration"},{"title":"Gateway Cluster State Synchronization","href":"/docs/security-research/gate/gate-state-sync"},{"title":"Gateway Implementation Security Details","href":"/docs/security-research/gate/gate-implementation"},{"title":"Gateway Attestation and Verification Mechanisms","href":"/docs/security-research/gate/gate-attestation-verification"},{"title":"Gateway Connection Strategies and Load Balancing","href":"/docs/security-research/gate/gate-load-balancing"},{"title":"Gateway Cryptographic Implementation and Security Notes","href":"/docs/security-research/gate/gate-notes"}]},{"group":"kms","pages":[{"title":"KMS Security Overview","href":"/docs/security-research/kms/kms-overview"},{"title":"KMS Certificate Management and RA-TLS","href":"/docs/security-research/kms/kms-cert-manager"},{"title":"KMS Cryptographic Implementation Details","href":"/docs/security-research/kms/kms-implementation"},{"title":"KMS Verification and Audit Procedures","href":"/docs/security-research/kms/kms-audit-procedures"},{"title":"KMS Blockchain Integration","href":"/docs/security-research/kms/kms-blockchain-integration"},{"title":"KMS Security Architecture Details","href":"/docs/security-research/kms/kms-security-arch"},{"title":"KMS Security Properties and Guarantees","href":"/docs/security-research/kms/kms-security-props"},{"title":"KMS Security: Performance, Best Practices, and Threat Model","href":"/docs/security-research/kms/kms-security"}]}]},{"group":"Additional Reading","icon":{"style":"solid","name":"book-open"},"pages":[{"title":"Security Modules","href":"/docs/security-research/extra-sec-ops/before-reading"},{"group":"extra-sec-ops","pages":[{"title":"Certbot TEE Security","description":"Analysis of automated certificate management and ACME protocol implementation in dstack TEE","href":"/docs/security-research/extra-sec-ops/certbot-security"},{"title":"Cert Client Security","href":"/docs/security-research/extra-sec-ops/cert-client-security"},{"title":"CT Monitor Security","description":"Certificate Transparency monitoring and anomaly detection for dstack TEE infrastructure","href":"/docs/security-research/extra-sec-ops/ct-monitor-security"},{"title":"IOHash Security Architecture","href":"/docs/security-research/extra-sec-ops/iohash-security"},{"title":"Host API Security","href":"/docs/security-research/extra-sec-ops/host-api-security"}]}]}]},{"dropdown":"Tutorials","icon":{"style":"solid","name":"apple-whole"},"pages":[{"title":"Quick dstack Guide","href":"/docs/tutorials/index-quick-start"},{"group":"Additional Starter Guides","icon":{"style":"regular","name":"book"},"pages":[{"title":"Run basic Express.js in a TEE with Node.js","href":"/docs/tutorials/javascript-example"},{"title":"Deploy a FastAPI Python Script in a TEE with dstack","href":"/docs/tutorials/python-example"},{"title":"Deploy a Tokio API in a TEE with dstack","href":"/docs/tutorials/rust-example"}]}]},{"dropdown":"Community \u0026 Support","icon":"users","pages":[{"title":"Community \u0026 Ecosystem","href":"/docs/community-section/community"},{"title":"Contributing to dstack","href":"/docs/community-section/contribution"}]}]},"basePath":"","title":"Cert Client Security - dstack","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":[],"chunks":[]}