Back to Playframework

Configuring WS SSL

documentation/manual/working/commonGuide/configuration/WsSSL.md

3.1.0-M92.8 KB
Original Source
<!--- Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com> -->

Configuring WS SSL

[[Play WS|ScalaWS]] allows you to set up HTTPS completely from a configuration file, without the need to write code. It does this by layering the Java Secure Socket Extension (JSSE) with a configuration layer and with reasonable defaults.

Table of Contents

The Play WS configuration is based on Typesafe SSLConfig.

For convenience, a table of contents to SSLConfig is provided:

NOTE: The links below are relative to Typesafe SSLConfig, which uses the ssl-config as a prefix for ssl properties.

Play uses the play.ws.ssl prefix, so that, for instance the ssl-config.loose.acceptAnyCertificate becomes play.ws.ssl.loose.acceptAnyCertificate for your play WSClient configuration.

Further Reading

JSSE is a complex product. For convenience, the JSSE materials are provided here:

JDK 17: