starttls

ldapsearch over ssl/tls doesn't work

北城以北 提交于 2019-12-03 06:23:01
问题 I am trying to use ldapsearch over ssl/tls connection, but it doesn't work: ldapsearch -ZZ -d 5 -b "cn=Users,dc=my,dc=server,dc=com" -s sub -D "cn=mydevice,cn=Users,dc=my,dc=server,dc=com" -h my.server.com -p 3269 -w "mypass" -x "(cn=test)" ldap_create ldap_url_parse_ext(ldap://my.server.com:3269) ldap_extended_operation_s ldap_extended_operation ldap_send_initial_request ldap_new_connection 1 1 0 ldap_int_open_connection ldap_connect_to_host: TCP my.server.com:3269 ldap_new_socket: 3 ldap

STARTTLS vs SSL/TLS [closed]

荒凉一梦 提交于 2019-12-01 02:03:17
Mailclients offer both settings, the STARTTLS and SSL/TLS. What is the difference between STARTTLS and SSL/TLS? The question is quite vague, but I guess I understand it. STARTTLS means "explicit TLS" where the connection is established on regular port and then STARTTLS command is sent to initiate SSL handshake and switch to protection mode. Another option probably defines implicit SSL/TLS on a dedicated port. In implicit mode first the handshake takes place and then the application-level protocol runs over the established secure channel. The clearest explanation that I've read is from FastMail

STARTTLS vs SSL/TLS [closed]

為{幸葍}努か 提交于 2019-11-30 21:26:56
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Mailclients offer both settings, the STARTTLS and SSL/TLS. What is the difference between STARTTLS and SSL/TLS? 回答1: The question is quite vague, but I guess I understand it. STARTTLS means "explicit TLS" where the connection is established on regular port and then STARTTLS command is sent to initiate SSL

Upgrade Java socket to encrypted after issue starttls

好久不见. 提交于 2019-11-30 13:42:34
I want my app to talk to the server without encryption before issuing a STARTTLS and then upgrade the socket to be encrypted after that. Can I connect to a port (E.g., 5222) and use STARTTLS to request TLS using java? If so, which Socket object should I use for that? Sure you can. Use your SSLSocketFactory to create a socket wrapping an existing regular java.net.Socket: SSLSocket sslsocket = (SSLSocket) sslsocketfactory.createSocket( socket, socket.getInetAddress().getHostAddress(), socket.getPort(), true); @Jan's answer was helpful (and I voted for it), but I had to tweak it a bit to get it

Upgrade Java socket to encrypted after issue starttls

我的梦境 提交于 2019-11-29 19:44:29
问题 I want my app to talk to the server without encryption before issuing a STARTTLS and then upgrade the socket to be encrypted after that. Can I connect to a port (E.g., 5222) and use STARTTLS to request TLS using java? If so, which Socket object should I use for that? 回答1: Sure you can. Use your SSLSocketFactory to create a socket wrapping an existing regular java.net.Socket: SSLSocket sslsocket = (SSLSocket) sslsocketfactory.createSocket( socket, socket.getInetAddress().getHostAddress(),

Java mail without ssl - PKIX path building failed:

落花浮王杯 提交于 2019-11-28 03:54:39
问题 I am using java mail to send emails over smtp. The smtp settings given below: Properties props = new Properties(); Object put = props.put("mail.smtp.host", smtpHost); props.put("mail.smtp.user", smtpUser); props.put("mail.smtp.auth", true); props.put("mail.debug", mailDebug); props.put("mail.smtp.port", port); The smtp credentials have been verified by telnetting to my smtpHost with the above details. However, I get the following exception when I use the above settings in java mail. 250-AUTH

How do I verify a TLS SMTP certificate is valid in PHP?

假装没事ソ 提交于 2019-11-27 21:19:13
To prevent man-in-the-middle attacks (a server pretending to be someone else), I would like to verify that the SMTP server I connect too over SSL has a valid SSL certificate which proves it is who I think it is. For example, after connecting to an SMTP server on port 25, I can switch to a secure connection like so: <?php $smtp = fsockopen( "tcp://mail.example.com", 25, $errno, $errstr ); fread( $smtp, 512 ); fwrite($smtp,"HELO mail.example.me\r\n"); // .me is client, .com is server fread($smtp, 512); fwrite($smtp,"STARTTLS\r\n"); fread($smtp, 512); stream_socket_enable_crypto( $smtp, true,

How do I verify a TLS SMTP certificate is valid in PHP?

旧街凉风 提交于 2019-11-26 20:37:00
问题 To prevent man-in-the-middle attacks (a server pretending to be someone else), I would like to verify that the SMTP server I connect too over SSL has a valid SSL certificate which proves it is who I think it is. For example, after connecting to an SMTP server on port 25, I can switch to a secure connection like so: <?php $smtp = fsockopen( "tcp://mail.example.com", 25, $errno, $errstr ); fread( $smtp, 512 ); fwrite($smtp,"HELO mail.example.me\r\n"); // .me is client, .com is server fread(