lordoftheflies / lordoftheflies/mlm-server

Configure SSL certificate of the production server.

Open
#2 0 comments 0 reactions 1 assignee View on GitHub

@lordoftheflies is already working on this.

Since Aug 23, 2016.

bug
Dominant language
Java
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### Configuration

```
mail.host=box.topflavon.net
mail.port=587
mail.from=admin@topflavon.net
mail.pass=qwe123
mail.organization=TopFlavon Team
mail.application=TopFlavon
mail.logo=https://www.topflavon.net/images/favicon-96x96.png
```
### Test results:

```
-------------------------------------------------------------------------------
Test set: com.dd.mlm.topn.auth.service.VelocityEmailSenderIntegrationTest
-------------------------------------------------------------------------------
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.094 sec <<< FAILURE! - in com.dd.mlm.topn.auth.service.VelocityEmailSenderIntegrationTest
testSendRegistrationActivationEmail(com.dd.mlm.topn.auth.service.VelocityEmailSenderIntegrationTest) Time elapsed: 1.19 sec <<< ERROR!
org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not convert socket to TLS;
nested exception is:
java.io.IOException: Server is not trusted: box.topflavon.net. Failed messages: javax.mail.MessagingException: Could not convert socket to TLS;
nested exception is:
java.io.IOException: Server is not trusted: box.topflavon.net
at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:613)
at com.sun.mail.util.SocketFetcher.startTLS(SocketFetcher.java:525)
at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:2041)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:711)
at javax.mail.Service.connect(Service.java:366)
at org.springframework.mail.javamail.JavaMailSenderImpl.connectTransport(JavaMailSenderImpl.java:501)
at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:421)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:345)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:362)
at org.springframework.mail.javamail.JavaMailSenderImpl.send(JavaMailSenderImpl.java:350)
at com.dd.mlm.topn.auth.service.VelocityEmailSender.send(VelocityEmailSender.java:81)
at com.dd.mlm.topn.auth.service.VelocityEmailSender.sendRegistrationActivationEmail(VelocityEmailSender.java:112)
at com.dd.mlm.topn.auth.service.VelocityEmailSenderIntegrationTest.testSendRegistrationActivationEmail(VelocityEmailSenderIntegrationTest.java:67)

```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.