获取XMPP S2S网关证书

时间:2019-02-07 15:29:12

标签: openssl xmpp

我正在尝试从XMPP s2s网关获取证书。我已经尝试过使用openssl,但是在公共XMPP服务器“ jabber.at”上变得像这样

    override func layoutSubviews() {
    super.layoutSubviews()
        self.layer.shadowPath = UIBezierPath(roundedRect: self.bounds,  cornerRadius: self.contentView.layer.cornerRadius).cgPath
    }

我是XMPP / Jabber的新手。还包括jabber.at的SRV记录。

$ openssl s_client -starttls xmpp-server  -connect xmpp.jabber.at:5269
CONNECTED(00000003)
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 319 bytes and written 119 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
---

1 个答案:

答案 0 :(得分:0)

您可能还需要指定-xmpphost hostname ,其中 hostname 是jabber ID中@后面的名称,例如

当您的XMPP服务器托管JID your_name@example.com时,主机名将为example.com