关于向foxmail发送报错的问题

-2023-06-07 14:17:39.729 [TID: N/A] ERROR 28772 --- [  XNIO-1 task-1] c.s.s.a.s.impl.SysEmailSendServiceImpl   : Mail server connection failed; nested exception is javax.mail.MessagingException: Could not convert socket to TLS;
  nested exception is:
        javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. Failed messages: javax.mail.MessagingException: Could not convert socket to TLS;
  nested exception is:
        javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

 

说白了就是TLS没有关闭,网上说是在配置文件修改

 我当时就懵逼了,我们这个系统这些配置是在数据库配置的,有SSL的关闭和开启,没有TLS啊,最后只能顺着代码找,在一个犄角旮旯的工具类里面找到了TLS的配置

 

 我也是服了

posted @   蓝海的bug本  阅读(49)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 按钮权限的设计及实现
· 25岁的心里话
点击右上角即可分享
微信分享提示