LX0-104 · Question #427
The openssl command can be used to test connections with various secure services. What command will open a connection with a remote POP3S (POP3 over SSL) server?
The correct answer is C. openssl s_client connect pop.example.com:pop3s. To test an SSL/TLS connection with a remote server using OpenSSL, the openssl s_client command is employed, specifying the host and port.
Question
Options
- Aopenssl connect host pop.example.com:pop3s
- Bopenssl connect pop.example.com:pop3s
- Copenssl s_client connect pop.example.com:pop3s
- Dopenssl s_client pop.example.com:pop3s
How the community answered
(55 responses)- A4% (2)
- B2% (1)
- C93% (51)
- D2% (1)
Why each option
To test an SSL/TLS connection with a remote server using OpenSSL, the openssl s_client command is employed, specifying the host and port.
The openssl connect command does not exist; s_client is the correct subcommand for this purpose.
This command incorrectly uses openssl connect and omits the s_client subcommand.
The openssl s_client command is specifically designed to implement a generic SSL/TLS client, which is used for connecting to a remote server over SSL/TLS and performing various diagnostic tasks. The connect option followed by host:port (e.g., pop.example.com:pop3s) correctly specifies the target server and service.
While openssl s_client host:port might sometimes work, the connect keyword explicitly states the intent to establish a connection, making s_client connect host:port the more precise and commonly used form for clarity and robustness.
Concept tested: OpenSSL SSL/TLS client connection testing
Source: https://www.openssl.org/docs/manmaster/man1/openssl-s_client.html
Topics
Community Discussion
No community discussion yet for this question.