{"id":5395,"date":"2021-11-12T02:50:26","date_gmt":"2021-11-12T02:50:26","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=5395"},"modified":"2021-11-12T02:50:26","modified_gmt":"2021-11-12T02:50:26","slug":"javax-mail-messagingexception-could-not-convert-socket-to-tls-nested-exception-is-javax-net-ssl-sslexception","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/javax-mail-messagingexception-could-not-convert-socket-to-tls-nested-exception-is-javax-net-ssl-sslexception","title":{"rendered":"javax.mail.MessagingException: Could not convert socket to TLS; nested exception is: javax.net.ssl.SSLException"},"content":{"rendered":"<div>Indicates whether to use a secure connection (SSL or TLS). If SSL or TLS is selected, the server&#8217;s certificate or its authority must be in protectedstore\/trusted.jks.<\/div><div>\u00a0<\/div><div>Error while sending<\/div><div>\u00a0<\/div><div><em><strong>javax.mail.MessagingException: Could not convert socket to TLS; nested exception is: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty<\/strong><\/em><\/div><div><div id=\"x_appendonsend\">\u00a0<\/div><div>Solution ( Change to your Java version on PC )\u00a0<\/div><\/div><p>C:\\BizLink\\app\\protectedstore&gt;&#8221;C:\\Program Files\\Java\\jre1.8.0_241\\bin\\keytool.exe&#8221; -importkeystore -srckeystore &#8220;C:\\Program Files\\Java\\jre1.8.0_241\\lib\\security\\cacerts&#8221; -destkeystore trusted.jks<br \/>Importing keystore C:\\Program Files\\Java\\jre1.8.0_241\\lib\\security\\cacerts to trusted.jks&#8230;<\/p><p><em><strong>&#8220;By default, the password for the GlassFish truststore is already specified. The password is\u00a0changeit .&#8221;<\/strong><\/em><\/p><p><br \/>Enter destination keystore password:<br \/>Enter source keystore password:<br \/>Entry for alias verisignclass2g2ca [jdk] successfully imported.<br \/><br \/><\/p><p>After you will need to restart OpenText BizManager BizLink Msgsrv and OpenText BizManager BizLink Configuration Services<\/p>","protected":false},"excerpt":{"rendered":"<p>Indicates whether to use a secure connection (SSL or TLS). If SSL or TLS is selected, the server&#8217;s certificate or its authority must be in protectedstore\/trusted.jks.\u00a0Error while [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3645,3647,3646,1176,3644,3643],"class_list":["post-5395","post","type-post","status-publish","format-standard","hentry","category-research","tag-bizlink","tag-cacerts","tag-keytool-exe","tag-smtp","tag-the-trustanchors-parameter-must-be-non-empty","tag-trusted-jks"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5395","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=5395"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5395\/revisions"}],"predecessor-version":[{"id":5396,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/5395\/revisions\/5396"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=5395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=5395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=5395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}