smtps

SMTPS: OpenSSL - SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol s23_clnt.c:787:

只愿长相守 提交于 2019-12-12 15:22:44
问题 I'm using OpenSSL in order to encrypt some emails, that a piece of hardware sends. But, whenever I try to call SSL_connect(), I get : SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol After sending "EHLO" and "STARTTLS" I call the following function: SSL_CTX *ctx = NULL; SSL *ssl = NULL; void CreateTLSSession(int sockfd) { printf("///////////////creating TLS Session/////////////////////\n"); SSL_library_init(); SSL_load_error_strings(); OpenSSL_add_all_algorithms(); ctx = SSL_CTX_new

Error in sending mail through smtps

大憨熊 提交于 2019-12-11 06:06:25
问题 I am getting the below exception while connecting to my mailserver while executing the below line transport.connect("test.mailserver.com",465,"test.user@test.com","testpwd"); The Exception is: (javax.mail.MessagingException) javax.mail.MessagingException: Exception reading response; nested exception is: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: subject/issuer name chaining check

How to configure Spring JavaMailSender for SES using SMTP?

流过昼夜 提交于 2019-11-29 02:29:26
问题 We are trying to configure Spring JavaMailSender to work with Amazon's SES service using SMTP, but we are getting this error: javax.mail.MessagingException: Could not connect to SMTP host: email-smtp.us-east-1.amazonaws.com, port: 465, response: -1 This is our configuration: <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl"> <property name="host" value="email-smtp.us-east-1.amazonaws.com" /> <property name="port" value="465" /> <property name="username" value=