{"id":2379,"date":"2020-03-11T12:43:56","date_gmt":"2020-03-11T12:43:56","guid":{"rendered":"http:\/\/salientsoft.co.uk\/?p=2379"},"modified":"2020-03-14T10:16:40","modified_gmt":"2020-03-14T10:16:40","slug":"using-self-signed-ssl-with-spring-boot","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=2379","title":{"rendered":"Using self signed SSL with Spring Boot"},"content":{"rendered":"<p>I needed to use ssl for a Spring Boot backend web service for Yoti, as https is a Yoti requirement.<\/p>\n<p><a href=\"https:\/\/www.baeldung.com\/spring-boot-https-self-signed-certificate\"><strong>This post here<\/strong><\/a> details how to do this for Spring Boot. The official Oracle docs can also be found <a href=\"https:\/\/docs.oracle.com\/cd\/E54932_01\/doc.705\/e54936\/cssg_create_ssl_cert.htm#CSVSG180\"><strong>here<\/strong><\/a>.<\/p>\n<p>The following configuration fragment from the Spring Boot application.properties shows how to configure for ssl using the created keystore (keystore.p12), which was placed in the deployment directory alongside the spring boot jar:-<\/p>\n<blockquote><p>server.port=8443<br \/>\nserver.ssl.key-store-type=PKCS12<br \/>\nserver.ssl.key-store=salientsoft.p12<br \/>\nserver.ssl.key-store-password=&lt;password&gt;<br \/>\nserver.ssl.key-alias=salientsoftdev<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I needed to use ssl for a Spring Boot backend web service for Yoti, as https is a Yoti requirement. This post here details how to do this for Spring Boot. The official Oracle docs can also be found here. The following configuration fragment from the Spring Boot application.properties shows how to configure for ssl [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,95,219,77],"tags":[],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2379"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2379"}],"version-history":[{"count":4,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2379\/revisions"}],"predecessor-version":[{"id":2394,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2379\/revisions\/2394"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2379"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}