Exchange Server: Khắc phục lỗi didnt found starttls in server response, try anyway khi kết nối STARTTLS
Khi cài đặt chứng thư số cho Exchange Server xong, vì nhiều lý do, có thể bạn sẽ xóa chứng thư số cũ đã hết hạn. Tuy nhiên, sau khi xóa, trong một số trường hợp bạn sẽ gặp lỗi không thể kết nối đến Exchange thông qua giao thức STARTTLS trên port 587.
Khi kết nối vào server bằng lệnh:
openssl s_client -connect mail.domain.com:587 -starttls smtp
thì gặp lỗi:
CONNECTED(00000003) didn't found starttls in server response, try anyway...
Trong event log mục Application Error của CAS, bạn sẽ gặp lỗi sau:
Microsoft Exchange could not find a certificate that contains the
domain name
CN=RapidSSL SHA256 CA, O=GeoTrust Inc.,
C=US
CN=*.%ourdomain%.com in the personal store on the local
computer. Therefore, it is unable to support the STARTTLS SMTP verb for
the connector Default Frontend OPL-EXCH01 with a FQDN parameter of
CN=RapidSSL SHA256 CA, O=GeoTrust Inc.,
C=US
CN=*.%ourdomain%.com. If the connector's FQDN is not
specified, the computer's FQDN is used. Verify the connector
configuration and the installed certificates to make sure that there is a
certificate with a domain name for that FQDN. If this certificate
exists, run Enable-ExchangeCertificate -Services SMTP to make sure that
the Microsoft Exchange Transport service has access to the certificate
key.
Xử lý lỗi này như sau:
1. Mở Exchange Management Shell trên con CAS và chạy lệnh sau:
PS>Get-ExchangeCertificate PS>Get-ReceiveConnector
Copy thumbprint của chứng thư số vừa cài đặt. Copy tên các receive connector đã cấu hình STARTTLS.
2. Chạy tiếp các lệnh sau:
PS>$cert = Get-ExchangeCertificate -Thumbprint %NewCertificateThumbprint% PS>$tlscertificatename = "$($cert.Issuer)$($cert.Subject)" PS> Set-ReceiveConnector "%ReceiveConnectorName%" -TlsCertificateName $tlscertificatename
Lưu ý:
* Thay %NewCertificateThumbprint% bằng thumbprint của chứng thư số mới
* Thay %ReceiveConnectorName% bằng tên receive connector
3. Restart lại Exchange Transport service
4. Restart lại IIS bằng lệnh:
iisreset
Xử lý sự cố khác
Lỗi NET::ERR_CERT_AUTHORITY_INVALID trên điện thoại Android cũ: thiếu chứng chỉ ký chéo (cross-sign)
Lỗi Microsoft IIS: Chứng chỉ không được tin cậy rộng rãi do thiếu đường dẫn chứng chỉ (Certificate Path) hợp lệ
Cần làm gì khi một Root CA hết hạn hoặc cập nhật
Yubikey: Ký mã ClickOnce bằng chứng chỉ được lưu trữ trên Yubikey
Gemalto Safenet eToken 5110CC (940): Làm thế nào để mở khóa (đặt lại mật khẩu)
Lỗi: Verify return code: 21 (unable to verify the first certificate)
Zimbra: Lỗi chdir(/root) failed: Permission denied
Signtool: Lỗi No certificates were found that met all the given criteria
Cài đặt SSL thành công nhưng Google hoặc Facebook báo lỗi
Windows: Bản vá bổ sung Trusted Root Certificates
Windows: Tự động cập nhật Chứng chỉ gốc - Trusted Root Certificates
Chrome lỗi ERR_CERT_AUTHORITY_INVALID trên Windows 7
Zimbra: Xử lý lỗi Root CA Certificate Expiration
Cpanel: Root CA Certificate Expiration
Comodo/Sectigo: Lỗi Root certificate has expired
Hướng dẫn cập nhật Root / Intermediate CA trên Linux Server
Comodo/Sectigo: Lỗi Root certificate has expired
Lỗi: Windows does not have enough information to verify this certificate
Windows Server 2012: Hướng dẫn cập nhật máy chủ hỗ trợ TLS 1.2
Windows Server 2008: Hướng dẫn cập nhật máy chủ hỗ trợ TLS 1.2