V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
GeekTest
V2EX  ›  Linux

怎样在 ocserv 使用 Let's Encrypt 签发的证书

  •  
  •   GeekTest · 2016-01-14 16:39:32 +08:00 · 7121 次点击
    这是一个创建于 2997 天前的主题,其中的信息可能已经有所发展或是发生改变。

    用 Raspberry Pi 搭 ocserv
    config:
    server-cert = /etc/ocserv/fullchain.pem
    server-key = /etc/ocserv/privkey.pem
    ca-cert = /etc/ocserv/cert.pem
    然后签发 user 证书

    certtool --generate-certificate --load-privkey user-key.pem --load-ca-certificate cert.pem --load-ca-privkey privkey.pem --template user.tmpl --outfile user-cert.pem
    

    连不上
    但是用密码可以连上

    8 条回复    2016-01-30 22:57:03 +08:00
    ahxxm
        1
    ahxxm  
       2016-01-14 19:33:37 +08:00
    你怎么连 raspberry pi 的, hosts 里加证书对应域名?
    crystom
        2
    crystom  
       2016-01-14 21:17:08 +08:00
    你自签证书成功过么?
    GeekTest
        3
    GeekTest  
    OP
       2016-01-14 22:09:17 +08:00 via Android
    @crystom 自签没问题
    mxi1
        4
    mxi1  
       2016-01-15 14:11:04 +08:00
    你的域名能通过一般的 DNS 解析吗?
    GeekTest
        5
    GeekTest  
    OP
       2016-01-15 14:30:04 +08:00
    已解决
    更改以下配置
    cert-user-oid = 2.5.4.3
    server-cert 使用 Let's Encrypt 签发的证书
    然后自签 CA 然后再签发用户证书
    a629
        6
    a629  
       2016-01-19 03:10:35 +08:00
    @GeekTest 这个选项还是用 cn 的好些
    ioiioi
        7
    ioiioi  
       2016-01-20 18:06:41 +08:00
    我有点好奇,用自签发证书不可以了吗?为什么要用 Let's encrypt ?
    wawaitianxia
        8
    wawaitianxia  
       2016-01-30 22:57:03 +08:00

    @ioiioi 强迫症患者,需要解决 证书不可信 的问题
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2446 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 15:49 · PVG 23:49 · LAX 08:49 · JFK 11:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.