Sonique
Sonique

Reputation: 7080

Spring Boot - client server REST API with self-signed certificate

I made two apps for client and server with RestTemplate RestController.

Needed to encrypt API with self-signed certificate, 'RestController' on server side should answer only to signed requests.

Is it possible with Spring Boot RestTemplate / RestController?

Upvotes: 0

Views: 3127

Answers (1)

Ralf Stuckert
Ralf Stuckert

Reputation: 2200

The Spring Boot doc provides informations on how to configure the server: https://docs.spring.io/spring-boot/docs/current/reference/html/howto-embedded-servlet-containers.html#howto-configure-ssl

For configuring the client RestTemplate see here (4. The Spring RestTemplate with SSL) http://www.baeldung.com/httpclient-ssl

Upvotes: 2

Related Questions