[{"data":1,"prerenderedAt":300},["ShallowReactive",2],{"Categories":3,"NavIndexCategoriesCountFooter":203,"content-\u002F2007\u002F10\u002F25\u002Fadding-self-signed-https-certificates-to-java-keystore\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":27,"date":283,"description":213,"embedImage":284,"extension":285,"image":284,"intro":284,"meta":286,"navigation":287,"path":288,"seo":289,"series":284,"sitemap":290,"stem":291,"tags":292,"__hash__":299},"content\u002F2007\u002F10\u002F25\u002Fadding-self-signed-https-certificates-to-java-keystore.md","Adding self-signed https certificates to java keystore",{"type":208,"value":209,"toc":280},"minimark",[210,214,217,220,231,234,241,244,247,253,266,272,277],[211,212,213],"p",{},"There are several reasons you may need to add a self-signed https ssl certificate to your local java keystore.",[211,215,216],{},"For me - its so that maven can access DAV shares for repository deployment.",[211,218,219],{},"You need to run the following",[221,222,227],"pre",{"className":223,"code":225,"language":226},[224],"language-text","$JAVA_HOME\u002Fbin\u002Fkeytool -import -alias \u003Csome descriptive name> -file \u003Ccertificate file> -keystore \u003Cpath to keystore>\n","text",[228,229,225],"code",{"__ignoreMap":230},"",[211,232,233],{},"For MAC - keystore is $JAVA_HOME\u002Flib\u002Fsecurity\u002Fjssecacerts",[211,235,236,237],{},"(and JAVA_HOME on the Mac is \u002FSystem\u002FLibrary\u002FFrameworks\u002FJavaVM.framework\u002FVersions\u002F",[238,239,240],"your",{"version":230},"\u002FHome)",[211,242,243],{},"For Windows\u002FLinux - keystore is $JAVA_HOME\u002Fjre\u002Flib\u002Fsecurity\u002Fjssecacerts",[211,245,246],{},"Default password is changeit",[211,248,249],{},[250,251,252],"strong",{},"Update",[211,254,255,256,265],{},"If you need to install someone else's certificate and they don't have a download link then the following from ",[257,258,259],"a",{"href":259,"rel":260,"target":264},"http:\u002F\u002Fwww.madboa.com\u002Fgeek\u002Fopenssl\u002F#cert-retrieve",[261,262,263],"nofollow","noopener","noreferer","_blank"," may help:",[221,267,270],{"className":268,"code":269,"language":226},[224],"#!\u002Fbin\u002Fsh\n#\n# usage: retrieve-cert.sh remote.host.name [port]\n#\nREMHOST=$1\nREMPORT=${2:-443}\necho |\\\nopenssl s_client -connect ${REMHOST}:${REMPORT} 2>&1 |\\\nsed -ne '\u002F-BEGIN CERTIFICATE-\u002F,\u002F-END CERTIFICATE-\u002Fp'\n",[228,271,269],{"__ignoreMap":230},[211,273,274],{},[250,275,276],{},"Update 2013-11-22",[211,278,279],{},"Mac certificate file path - the path given above matches the JDKs from Apple. The path for the certificate file if you're using java 7 from oracle on your mac will match the path given for windows\u002Flinux above - in other words - from java 7 and on - the path is the same for windows\u002Flinux\u002Fmac (makes sense since the JDK now comes from the same place).",{"title":230,"searchDepth":281,"depth":281,"links":282},2,[],"2007-10-25 11:57:37 +0200",null,"md",{},true,"\u002F2007\u002F10\u002F25\u002Fadding-self-signed-https-certificates-to-java-keystore",{"title":206,"description":213},{"loc":288},"2007\u002F10\u002F25\u002Fadding-self-signed-https-certificates-to-java-keystore",[293,294,295,296,297,298],"java","ssl","maven","keystore","webdav","keytool","a7AA8_dwTBIROGHUSKGlAySdGykCgxmrGfGUiWwQQJw",1775293015985]