[{"data":1,"prerenderedAt":307},["ShallowReactive",2],{"Categories":3,"NavIndexCategoriesCountFooter":203,"content-\u002F2008\u002F05\u002F22\u002Fjava-can-t-send-mail-due-to-a-certificate-error\u002F":204},[4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,68,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202],{"category":5},"System Administration",{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},"Software Development",{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":27},{"category":27},{"category":67},"Drones & RC",{"category":69},"DIY Projects",{"category":67},{"category":72},"Photography",{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":67},{"category":67},{"category":72},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":5},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":67},{"category":67},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":72},{"category":67},{"category":138},"3D Printing - Laser Cutting - CNC",{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":5},{"category":138},{"category":27},{"category":27},{"category":138},{"category":138},{"category":72},{"category":158},"Photography,3D Printing - Laser Cutting - CNC",{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":67},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":181},"Home Assistant",{"category":181},{"category":72},{"category":27},{"category":27},{"category":72},{"category":138},{"category":5},{"category":72},{"category":72},{"category":138},{"category":27},{"category":181},{"category":181},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},191,{"id":205,"title":206,"body":207,"category":287,"date":288,"description":213,"embedImage":287,"extension":289,"image":287,"intro":287,"meta":290,"navigation":291,"path":292,"seo":293,"series":287,"sitemap":294,"stem":295,"tags":296,"__hash__":306},"content\u002F2008\u002F05\u002F22\u002Fjava-can-t-send-mail-due-to-a-certificate-error.md","Java can't send mail due to a certificate error",{"type":208,"value":209,"toc":284},"minimark",[210,214,225,239,245,248,251,254,260,263,269,272,275,281],[211,212,213],"p",{},"I use a plugin to Aperture to send mail to gmail. It was failing due to a",[215,216,221],"pre",{"className":217,"code":219,"language":220},[218],"language-text","javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path\nbuilding failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find\nvalid certification path to requested target\n","text",[222,223,219],"code",{"__ignoreMap":224},"",[211,226,227,228,238],{},"The plugin author (",[229,230,237],"a",{"href":231,"rel":232,"target":236},"http:\u002F\u002Fiphoto2gmail.notoptimal.net\u002F",[233,234,235],"nofollow","noopener","noreferer","_blank","plugin home page",") found the following utility:",[211,240,241],{},[229,242,243],{"href":243,"rel":244,"target":236},"http:\u002F\u002Fblogs.sun.com\u002Fandreas\u002Fentry\u002Fno_more_unable_to_find",[233,234,235],[211,246,247],{},"This was able to grab the certificate and stick it into the system jssecacerts file for me - and then java could send to gmail again.",[211,249,250],{},"However - the gmail cert is a fully signed Thawte certificate - so I now need to find out why it wasn't being validated - it should not be necessary to have a local trusted copy of a commercial CA signed certificate. Next steps? Not sure - check the cacerts file I guess.",[211,252,253],{},"Running java 1.5 on Mac OSX:",[215,255,258],{"className":256,"code":257,"language":220},[218],"java -version\njava version \"1.5.0_13\"\nJava(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13-b05-237)\nJava HotSpot(TM) Client VM (build 1.5.0_13-119, mixed mode, sharing)\u003C\u002Fpre>\n",[222,259,257],{"__ignoreMap":224},[211,261,262],{},"So the files are in:",[215,264,267],{"className":265,"code":266,"language":220},[218],"\u002FSystem\u002FLibrary\u002FFrameworks\u002FJavaVM.framework\u002FVersions\u002FCurrentJDK\u002FHome\u002Flib\u002Fsecurity\n",[222,268,266],{"__ignoreMap":224},[211,270,271],{},"cacerts I believe to be the CA list and jssecacerts is your local trusted certificates.",[211,273,274],{},"To get the certificate installed for testing:",[215,276,279],{"className":277,"code":278,"language":220},[218],"cd \u002FSystem\u002FLibrary\u002FFrameworks\u002FJavaVM.framework\u002FVersions\u002FCurrentJDK\u002FHome\u002Flib\u002Fsecurity\njava InstallCert smtp.gmail.com:465 \u003Cpassword for keystore>\npress 1 to install certificate when prompted\n",[222,280,278],{"__ignoreMap":224},[211,282,283],{},"The default keystore password is \"changeit\".",{"title":224,"searchDepth":285,"depth":285,"links":286},2,[],null,"2008-05-22 08:35:02 +0200","md",{},true,"\u002F2008\u002F05\u002F22\u002Fjava-can-t-send-mail-due-to-a-certificate-error",{"title":206,"description":213},{"loc":292},"2008\u002F05\u002F22\u002Fjava-can-t-send-mail-due-to-a-certificate-error",[297,298,299,300,301,302,303,304,305],"java","ssl","aperture","keystore","google","gmail","cacerts","jssecacerts","aperture2gmail","MYrWjKCKLRkYT7SPVcvC2lJmi8vg1esbcFh2dt2uVn4",1775293015649]