1 line
5.4 KiB
XML
1 line
5.4 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" width="640" height="1040" viewBox="0 0 640 1040" role="img" aria-labelledby="title desc"><title id="title">Цепочка доверия TLS</title><desc id="desc">Сервер отправляет сертификат сайта и промежуточный сертификат. Клиент проверяет подписи до локально доверенного корневого центра, имя сайта и срок действия.</desc><defs><marker id="arrow" markerWidth="9" markerHeight="9" refX="7" refY="4" orient="auto"><path d="M0 0 8 4 0 8" fill="none" stroke="#b64d26" stroke-width="1.6"/></marker><pattern id="hatch" width="9" height="9" patternUnits="userSpaceOnUse"><path d="M-2 2 2-2 M0 9 9 0 M7 11 11 7" stroke="#d8d0c0" stroke-width="2"/></pattern></defs><rect width="640" height="1040" rx="4" fill="#fbf8f1"/><g font-family="Arial,Helvetica,sans-serif" fill="#242824"><text x="32" y="44" font-size="20" font-weight="bold" fill="#b64d26" text-anchor="start" font-family="monospace">02 / TLS</text><text x="32" y="87" font-size="33" font-weight="bold" fill="#242824" text-anchor="start">От сервера — до доверия</text><text x="32" y="122" font-size="24" font-weight="normal" fill="#676961" text-anchor="start">Сертификат сайта и CA bundle — разные вещи.</text><path d="M32 148 H608" fill="none" stroke="#d8d0c0" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><text x="32" y="188" font-size="22" font-weight="bold" fill="#b64d26" text-anchor="start">СЕРВЕР ОТПРАВЛЯЕТ</text><path d="M84 210 H476 L508 242 V334 H84 Z" fill="white" stroke="#242824" stroke-width="2"/><path d="M476 210 V242 H508" fill="none" stroke="#d8d0c0" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><text x="106" y="249" font-size="27" font-weight="bold" fill="#242824" text-anchor="start">Сертификат сайта</text><text x="106" y="286" font-size="24" font-weight="normal" fill="#676961" text-anchor="start">Имя: example.com</text><text x="106" y="318" font-size="22" font-weight="normal" fill="#327057" text-anchor="start" font-family="monospace">leaf / конечный</text><circle cx="551" cy="279" r="25" fill="#efe9dd" stroke="#b64d26" stroke-width="2"/><path d="M540 279 l8 8 15-18" fill="none" stroke="#b64d26" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M294 337 V378" fill="none" stroke="#b64d26" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arrow)"/><text x="324" y="366" font-size="22" font-weight="normal" fill="#676961" text-anchor="start">проверка подписи</text><path d="M84 397 H476 L508 429 V521 H84 Z" fill="white" stroke="#242824" stroke-width="2"/><path d="M476 397 V429 H508" fill="none" stroke="#d8d0c0" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><text x="106" y="436" font-size="27" font-weight="bold" fill="#242824" text-anchor="start">Промежуточный CA</text><text x="106" y="473" font-size="24" font-weight="normal" fill="#676961" text-anchor="start">Выдал сертификат сайта</text><text x="106" y="505" font-size="22" font-weight="normal" fill="#327057" text-anchor="start" font-family="monospace">intermediate</text><circle cx="551" cy="466" r="25" fill="#efe9dd" stroke="#b64d26" stroke-width="2"/><path d="M540 466 l8 8 15-18" fill="none" stroke="#b64d26" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/><path d="M294 523 V572" fill="none" stroke="#b64d26" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arrow)"/><text x="324" y="554" font-size="22" font-weight="normal" fill="#676961" text-anchor="start">проверка подписи</text><path d="M32 587 H608" fill="none" stroke="#d8d0c0" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" stroke-dasharray="6 7"/><text x="32" y="627" font-size="22" font-weight="bold" fill="#b64d26" text-anchor="start">ХРАНИЛИЩЕ КЛИЕНТА</text><rect x="58" y="655" width="524" height="142" rx="10" fill="#efe9dd" stroke="#242824" stroke-width="2"/><path d="M80 655 V641 H225 L247 655" fill="#efe9dd" stroke="#242824" stroke-width="2"/><text x="84" y="695" font-size="27" font-weight="bold" fill="#242824" text-anchor="start">Доверенный корневой CA</text><text x="84" y="734" font-size="25" font-weight="normal" fill="#242824" text-anchor="start">Системное хранилище</text><text x="84" y="769" font-size="25" font-weight="normal" fill="#242824" text-anchor="start">или настроенный CA bundle</text><path d="M294 798 V839" fill="none" stroke="#b64d26" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" marker-end="url(#arrow)"/><text x="32" y="883" font-size="26" font-weight="bold" fill="#242824" text-anchor="start">Подписи + имя сайта + срок действия</text><text x="32" y="925" font-size="25" font-weight="normal" fill="#676961" text-anchor="start">Цепочка должна закончиться у CA,</text><text x="32" y="960" font-size="25" font-weight="normal" fill="#676961" text-anchor="start">которому уже доверяет клиент.</text><text x="32" y="1010" font-size="23" font-weight="normal" fill="#b64d26" text-anchor="start">Корневой сертификат не берут на веру с сервера.</text></g></svg> |