{"id":727,"date":"2020-03-18T18:34:07","date_gmt":"2020-03-18T17:34:07","guid":{"rendered":"http:\/\/h2916922.stratoserver.net:8084\/?p=727"},"modified":"2020-03-18T18:58:03","modified_gmt":"2020-03-18T17:58:03","slug":"automatically-accept-certificates-using-the-wsadmin-bat-sh","status":"publish","type":"post","link":"https:\/\/www.ivojonker.nl\/?p=727","title":{"rendered":"Automatically accept certificates using the wsadmin.bat\/sh"},"content":{"rendered":"\n<p>Today i&#8217;ve been trying to execute jython to manage my websphere from java. By utilizing the &#8220;com.ibm.ws.scripting.WasxShell&#8221; class i was hoping to be able to execute java using only the thick-client and jython libraries on my classpath.<\/p>\n\n\n\n<p>Did not quite get there, but did catch something else &#8211; a simple way to automatically accept self-signed certificates, by leveraging <a href=\"https:\/\/www.ibm.com\/support\/knowledgecenter\/en\/SSEQTP_9.0.5\/com.ibm.websphere.base.doc\/ae\/tsec_sslsignautoxchgclient.html\">websphere&#8217;s signer auto-exchange prompt<\/a> . When set to stdin, you can just echo y to answer adding the certificate.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><code>echo y | \"${wsadmin.dir}\\wsadmin.bat\" -javaoption=\"-Dcom.ibm.ssl.enableSignerExchangePrompt=stdin\" -conntype SOAP -host ${host} -port ${port} -user ${user} -password ${password} -lang jython -f \"${scriptfile}\"<\/code><\/p>\n\n\n\n<p>Alternatively you might also go for a more explicit\/controlled approach mentioned on <a href=\"https:\/\/www.notonlyanecmplace.com\/wsadmin-import-self-signed-certificates-from-other-servers\/\">notonlyanecmplace.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today i&#8217;ve been trying to execute jython to manage my websphere from java. By utilizing the &#8220;com.ibm.ws.scripting.WasxShell&#8221; class i was hoping to be able to execute java using only the [&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":[],"class_list":["post-727","post","type-post","status-publish","format-standard","hentry","category-geen-categorie"],"_links":{"self":[{"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=\/wp\/v2\/posts\/727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=727"}],"version-history":[{"count":3,"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=\/wp\/v2\/posts\/727\/revisions"}],"predecessor-version":[{"id":730,"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=\/wp\/v2\/posts\/727\/revisions\/730"}],"wp:attachment":[{"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ivojonker.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}