Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: accept self-signed nauta.cu certificates #5953

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

link2xt
Copy link
Collaborator

@link2xt link2xt commented Sep 4, 2024

This will allow users to enable strict TLS checks.

This will allow users to enable strict TLS checks.
@link2xt
Copy link
Collaborator Author

link2xt commented Sep 4, 2024

We need to get recent certificates for imap.nauta.cu and smtp.nauta.cu
I added certificates from #1007 (comment), but they are expired in 2022.

@link2xt
Copy link
Collaborator Author

link2xt commented Sep 4, 2024

https://webmail.enet.cu/ has a Let's Encrypt certificate valid for imap.nauta.cu and smtp.nauta.cu, but it is not actually used for IMAP and SMTP servers. Here is a certificate chain downloaded with Firefox:

-----BEGIN CERTIFICATE-----
MIIGZjCCBU6gAwIBAgISAybV4OM3UnpqYOdagZ3Rr3PkMA0GCSqGSIb3DQEBCwUA
MDMxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MQwwCgYDVQQD
EwNSMTEwHhcNMjQwODIzMDkwMzA4WhcNMjQxMTIxMDkwMzA3WjASMRAwDgYDVQQD
EwdlbmV0LmN1MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0W37LgyN
4F80BJmAexgZDzN3fw5EexFw/0GFdWhktci4bdZTAROiJVVeQ8oRn1XFqevsh6pk
XjNkRzlO8wGu100wjus7chG0XizfTi/9zGUhl6VnUxD1MmJJ7wuWITk8GO+z/K5m
+mSkKm1b7URa6OM+pcHvXL9oYbONrE+8RN6Tdl4vxAVn0WlnG34fI+VopguW1+/p
S/FrwdojbmcR2yYwbTH+ORApPMxGdi0Gv3Xa5zllFFTTXB9TGOtcLPnZVu3CnSUs
LAGy2mdtnQbWRroKk7sJ/M1KwCueYTlgBJDQEpwWq2Z9+uGpRWU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R3veyJm+kXQ99b21/+jh5Xos1AnX5iItreGCc=
-----END CERTIFICATE-----

@link2xt
Copy link
Collaborator Author

link2xt commented Sep 4, 2024

We need someone to run this and save certificates they see:

openssl s_client -starttls imap -servername imap.nauta.cu -starttls imap -showcerts imap.nauta.cu:143
openssl s_client -starttls smtp -servername smtp.nauta.cu -starttls smtp -showcerts smtp.nauta.cu:25

@iequidoo
Copy link
Collaborator

iequidoo commented Sep 4, 2024

Probably you mean

openssl s_client -starttls **imap** -servername imap.nauta.cu -starttls imap -showcerts imap.nauta.cu:143
openssl s_client -starttls smtp -servername smtp.nauta.cu -starttls smtp -showcerts smtp.nauta.cu:25

@link2xt link2xt marked this pull request as draft September 5, 2024 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants