{"id":519,"date":"2015-11-08T06:55:29","date_gmt":"2015-11-08T06:55:29","guid":{"rendered":"http:\/\/installingcats.com\/?p=519"},"modified":"2015-11-08T06:55:29","modified_gmt":"2015-11-08T06:55:29","slug":"spring-boot-ssl-android-retrofit","status":"publish","type":"post","link":"https:\/\/installingcats.com\/2015\/11\/08\/spring-boot-ssl-android-retrofit\/","title":{"rendered":"Spring Boot SSL with Android Retrofit"},"content":{"rendered":"

To setup Spring Boot SSL with Android Retrofit connecting on HTTPS 443:<\/p>\n

In Spring Boot<\/p>\n

    \n
  1. <your project>\/src\/main\/resources\/application.properties – add the following values (not the “1.” which is just WordPress ordered list numbering)\n
      \n
    1. security.require-ssl=true
      \nserver.port=8443
      \nserver.ssl.key-store=src\/main\/resources\/private\/keystore
      \nserver.ssl.key-store-password=changeit
      \nserver.ssl.key-password=changeit<\/code><\/li>\n<\/ol>\n<\/li>\n
    2. create and add an SSL key<\/a> to the location specified by server.ssl.key-store. Note: the SSL certificate file is actually named “keystore”. \u00a0That’s not a directory.<\/li>\n
    3. Restart your Spring server and you should be able to make httpS connections on port 8443<\/li>\n<\/ol>\n

      In Android Retrofit<\/p>\n