AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / computer / 问题 / 1817865
Accepted
Amit
Amit
Asked: 2023-11-23 22:43:55 +0800 CST2023-11-23 22:43:55 +0800 CST 2023-11-23 22:43:55 +0800 CST

如何使用 XCA* 创建 CA + 2 证书 - 用于主机到主机 IPSec 身份验证(无 AD)

  • 772

(这是一个关于使用XCA,而不是 的问题openssl,这就是我的动机)

我创建了 CA、服务器和客户端证书:

  • 在 XCA 中,我是否需要以不同的方式创建这些证书?
  • 每个证书是否都有所需的密钥用法和扩展密钥用法的确切列表(例如,所有必要的内容,无需额外)?
    • 客户端证书有密钥用法Certificate Sign,看起来不太好。


执行的步骤:

  1. 我从 Microsoft Store安装了XCA :
  2. 我从 Fortinet 阅读了使用 XCA 创建证书并创建了:
    截图1

    1. 加利福尼亚州: RDP_CA

    2. IPSec 服务器: WS_RDP
      我想要通过 RDP 访问的工作站
      截图2

    3. IPSec 客户端: PAW_RDP
      唯一不应被拒绝的特权客户端
      截图2

windows
  • 1 1 个回答
  • 303 Views

1 个回答

  • Voted
  1. Best Answer
    Amit
    2023-11-25T02:41:52+08:002023-11-25T02:41:52+08:00

    我找到了方法:

    1. 从 Windows 应用商店安装 XCA:(
      截至 2023 年 11 月 24 日,v2.5.0 使用 2023 年 8 月起的 OpenSSL v3.1.2.1)
      截图1

    2. 为 XCA 数据库准备一个干净的 USB 记忆棒→运行 XCA

    3. 在 U 盘上创建一个新数据库:Home.xcd
      该数据库受密码保护,因此需要选择一个以供将来使用
      截图2

    4. 选项卡:模板
      XCA 有四个默认模板,适用于任何任意、非特定的用例

      1. [default] Empty template
      2. [default] CA
      3. [default] TLS_Client
      4. [default] TLS_Server

    5. 新 tepmlate &更改模板→编辑 XCA 模板对话框
      对于 IPSec 证书,我生成了三个新模板

      1. IPSec_CA_Template (继承自4.2)
      2. IPSec_Client_Template (继承自4.3)
      3. IPSec_Server_Template (继承自4.4)
        截图3

    6. 选项卡:密钥用途
      选择密钥用途 (KU)、扩展 KU (EKU) 和关键(可选)
      在此输入图像描述

      1. 加利福尼亚州:

        keyUsage=critical,digitalSignature, keyCertSign, cRLSign
        
      2. 客户:

        keyUsage=critical,digitalSignature, keyEncipherment
        extendedKeyUsage=critical,clientAuth
        
      3. 服务器:

        keyUsage=critical,digitalSignature, keyEncipherment, keyAgreement
        extendedKeyUsage=critical,serverAuth
        

    7. 选项卡:主题
      截图5

    8. Tab:Netscape
      取消全选并删除评论



    自定义模板准备好后 - 这是任何新证书的起点


    创建新证书
    我遵循Fortinet 的《使用 XCA 创建证书》手册来创建证书,但使用第 5 节中的自定义模板。由于自定义模板包含所有数据,包括 和Subject,Extensions因此需要单击Apply All而不是按Apply Extensions书面形式单击在手册中。服务器证书示例:

    在此输入图像描述


    [For Client / Server certificate. Not for CA]
    (2nd thing after tab Source) The only thing that is not in the template is the X509v3 Subject Alternative Name. It should be entered specifically with the hostname and the domain of the entity for whom the certificate is issued.
    Since it is a DHCP-enabled environment, fixed IPs are not assumed, and instead, a hostname.domain syntax is used. Refer to the appendix for information about configuring local-domain.

    在此输入图像描述




    Resultant V3 Profiles:
    Here are the X509v3 extensions (in compare with this reference)

    • CA: (The reference has also: authorityKeyIdentifier)

      basicConstraints=critical,CA:TRUE
      keyUsage=critical,digitalSignature, keyCertSign, cRLSign
      subjectKeyIdentifier=hash
      
    • Client: (The reference has also: authorityKeyIdentifier, nonrepudiation (KU))

      subjectAltName=critical,DNS:DESKTOP-KGXWQ2R.home
      extendedKeyUsage=critical,clientAuth
      keyUsage=critical,digitalSignature, keyEncipherment
      subjectKeyIdentifier=hash
      basicConstraints=critical,CA:FALSE
      
    • 服务器:( 参考文献还有:authorityKeyIdentifier,nonRepudiation(KU))

      subjectAltName=critical,DNS:DESKTOP-24JFXST.home
      extendedKeyUsage=critical,serverAuth
      keyUsage=critical,digitalSignature, keyEncipherment, keyAgreement
      subjectKeyIdentifier=hash
      basicConstraints=critical,CA:FALSE
      
    • 根据下面的评论,authorityKeyIdentifier “通常不是强制性的”和nonRepudiation “不用于任何网络协议”。



    附录:本地域

    对于本地域,home我必须配置我的路由器(仅接受该字段a-z和-字符):

    在此输入图像描述

    要验证计算机是否在home本地域内,请打开cmd.exe并输入:

    ipconfig /all
    

    应该看到这一点: 在此输入图像描述

    • 2

相关问题

  • 如何在 Windows Precision 触摸板上禁用鼠标加速?

  • 批量重命名图像文件集

  • Python 的“pass”参数的批处理等价物是什么?

  • 在 Windows 上与 Docker 守护进程通信

  • 资源管理器侧面板中的桌面外壳快捷方式

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何减少“vmmem”进程的消耗?

    • 11 个回答
  • Marko Smith

    从 Microsoft Stream 下载视频

    • 4 个回答
  • Marko Smith

    Google Chrome DevTools 无法解析 SourceMap:chrome-extension

    • 6 个回答
  • Marko Smith

    Windows 照片查看器因为内存不足而无法运行?

    • 5 个回答
  • Marko Smith

    支持结束后如何激活 WindowsXP?

    • 6 个回答
  • Marko Smith

    远程桌面间歇性冻结

    • 7 个回答
  • Marko Smith

    子网掩码 /32 是什么意思?

    • 6 个回答
  • Marko Smith

    鼠标指针在 Windows 中按下的箭头键上移动?

    • 1 个回答
  • Marko Smith

    VirtualBox 无法以 VERR_NEM_VM_CREATE_FAILED 启动

    • 8 个回答
  • Marko Smith

    应用程序不会出现在 MacBook 的摄像头和麦克风隐私设置中

    • 5 个回答
  • Martin Hope
    Vickel Firefox 不再允许粘贴到 WhatsApp 网页中? 2023-08-18 05:04:35 +0800 CST
  • Martin Hope
    Saaru Lindestøkke 为什么使用 Python 的 tar 库时 tar.xz 文件比 macOS tar 小 15 倍? 2021-03-14 09:37:48 +0800 CST
  • Martin Hope
    CiaranWelsh 如何减少“vmmem”进程的消耗? 2020-06-10 02:06:58 +0800 CST
  • Martin Hope
    Jim Windows 10 搜索未加载,显示空白窗口 2020-02-06 03:28:26 +0800 CST
  • Martin Hope
    andre_ss6 远程桌面间歇性冻结 2019-09-11 12:56:40 +0800 CST
  • Martin Hope
    Riley Carney 为什么在 URL 后面加一个点会删除登录信息? 2019-08-06 10:59:24 +0800 CST
  • Martin Hope
    zdimension 鼠标指针在 Windows 中按下的箭头键上移动? 2019-08-04 06:39:57 +0800 CST
  • Martin Hope
    jonsca 我所有的 Firefox 附加组件突然被禁用了,我该如何重新启用它们? 2019-05-04 17:58:52 +0800 CST
  • Martin Hope
    MCK 是否可以使用文本创建二维码? 2019-04-02 06:32:14 +0800 CST
  • Martin Hope
    SoniEx2 更改 git init 默认分支名称 2019-04-01 06:16:56 +0800 CST

热门标签

windows-10 linux windows microsoft-excel networking ubuntu worksheet-function bash command-line hard-drive

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve