"The certificate is NOT trusted. The certificate issuer is unknown." for let's encrypt cert on irc.sekrit.org
Trying to connect to irc.sekrit.org port 994 fails:
$ gnutls-cli irc.sekrit.org -p 994
Processed 128 CA certificate(s).
Resolving 'irc.sekrit.org:994'...
Connecting to '34.86.153.216:994'...
- Successfully sent 0 certificate(s) to server.
- Server has requested a certificate.
- Certificate type: X.509
- Got a certificate list of 1 certificates.
- Certificate[0] info:
- subject `CN=irc-new.sekrit.org', issuer `CN=R3,O=Let's Encrypt,C=US', serial 0x035246f14a5f17856da061c4af902569e957, RSA key 2048 bits, signed using RSA-SHA256, activated `2021-08-31 11:04:27 UTC', expires `2021-11-29 11:04:26 UTC', pin-sha256="D4UO7EFocRJUU18myirKrVhOKtVztbnmngql
hmVeBp0="
Public Key ID:
sha1:98c0e59729d7dab6587779a831fcbc072f0e9021
sha256:0f850eec4168711254535f26ca2acaad584e2ad573b5b9e69e0aa586655e069d
Public Key PIN:
pin-sha256:D4UO7EFocRJUU18myirKrVhOKtVztbnmngqlhmVeBp0=
- Status: The certificate is NOT trusted. The certificate issuer is unknown.
*** PKI verification of server certificate failed...
*** Fatal error: Error in the certificate.
openssl works fine:
$ openssl s_client -host irc.sekrit.org -port 994
CONNECTED(00000003)
depth=0 CN = irc-new.sekrit.org
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 CN = irc-new.sekrit.org
verify error:num=21:unable to verify the first certificate
verify return:1
---
Certificate chain
0 s:CN = irc-new.sekrit.org
i:C = US, O = Let's Encrypt, CN = R3
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIFOjCCBCKgAwIBAgISA1JG8UpfF4VtoGHEr5AlaelXMA0GCSqGSIb3DQEBCwUA
MDIxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MQswCQYDVQQD
EwJSMzAeFw0yMTA4MzExMTA0MjdaFw0yMTExMjkxMTA0MjZaMB0xGzAZBgNVBAMT
EmlyYy1uZXcuc2Vrcml0Lm9yZzCCASI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