2026-07-15

view SSL certificate on ports 587, 25, 110, 465, 995, 143, 993

Stefan Bogdanescu

Stefan Bogdanescu

Founder & Senior Architect

view SSL certificate on ports 587, 25, 110, 465, 995, 143, 993

Unlocking Secrets: How to View SSL Certificates on Common Ports

As a senior developer, I often encounter situations where network traffic appears opaque. You see ports like 80, 443, 25, or 993, but the actual security credentials—the SSL/TLS certificates—are hidden behind layers of configuration and encryption. The question you are asking—how to view the certificate details for ports 587, 25, 110, 465, 995, 143, and 993—is a common one. It requires moving beyond simple web browsing and diving into the realm of network protocol inspection.

Finding this information isn't as straightforward as searching Google because server certificates are generated by the specific server software (like Apache, Nginx, or Postfix) and are only exposed when explicitly requested or if the port is configured for unencrypted communication. This post will walk you through the developer-focused methods to uncover the domain names securing these services.

Understanding the Context: Ports vs. Certificates

First, it's important to understand that ports themselves (like 25 for SMTP or 993 for IMAPS) are merely communication channels. The SSL certificate is an artifact of the server that listens on that channel. To view the details, you must initiate a connection and ask the server for its credentials.

The specific ports you listed relate primarily to email protocols (SMTP, POP3, IMAP) secured via TLS/SSL:

  • 25 / 587: SMTP (Email Sending)
  • 110 / 995: POP3 (Email Retrieval)
  • 143 / 993: IMAP (Email Retrieval)
  • 465: SMTPS (Legacy secure SMTP)

Method 1: Direct Inspection using OpenSSL (The Developer Approach)

The most reliable, developer-grade way to inspect an SSL certificate is by using command-line tools like openssl. This method bypasses any application-level limitations and directly examines the handshake that occurs when a client connects to the server.

To check a specific port, you use the -s flag with openssl s_client. You must substitute the target IP address or domain name where you expect the certificate to be located.

Here is an example command structure for checking HTTPS (port 443), which demonstrates the principle needed for all secure ports:

openssl s_client -connect example.com:443 -servername example.com

Explanation of the Command:

  • -connect example.com:443: Tells OpenSSL to connect to example.com on port 443 (HTTPS).
  • -servername example.com: This is crucial for SNI (Server Name Indication), ensuring the server presents the correct certificate if it hosts multiple domains.

When you run this, the output will display the entire certificate chain, including the Common Name (CN) or Subject Alternative Names (SANs), which reveal the domain(s) the certificate is issued for. You would repeat this process for each port you are investigating (e.g., example.com:993, mailserver.net:587).

Method 2: Network Scanning Tools

For discovering services across an entire network or large range of IPs, specialized scanning tools are necessary. Tools like Nmap combined with scripting can probe open ports and attempt protocol negotiation. While Nmap itself doesn't directly decode the certificate content, it is essential for identifying which services are running on those specific ports before applying the openssl inspection.

Best Practices and Security Context

When dealing with sensitive protocols like email (ports 25, 110, 993), security posture is paramount. If you are developing an application—perhaps using a framework like Laravel—ensure that all data transmission utilizes strong encryption and proper certificate management. As we discuss in modern application development, secure configuration is not optional; it is foundational. For robust security practices, always ensure your infrastructure adheres to the highest standards, much like how systems built on principles from laravelcompany.com emphasize secure defaults.

Conclusion

In summary, viewing SSL certificate details for various ports requires a proactive, protocol-aware approach rather than a simple web search. By leveraging powerful command-line utilities like openssl, you gain the necessary visibility to inspect the actual certificates presented by the servers listening on those specific ports. Remember that network security is about inspecting the handshake; always treat these methods as tools for authorized system administration and security auditing.

Tags:

Enhance your marketing setup with your own email marketing platform.

Join the growing number of SaaS platforms using Laravel Mail to offer email marketing solutions to their customers.