[英]Spring Boot - client server REST API with self-signed certificate
我使用RestTemplate
RestController
為客戶端和服務器制作了兩個應用程序。
需要使用自簽名證書對API進行加密,服務器端的“ RestController”應僅回答已簽名的請求。
Spring Boot RestTemplate
/ RestController
是否可以?
Spring Boot文檔提供了有關如何配置服務器的信息: https : //docs.spring.io/spring-boot/docs/current/reference/html/howto-embedded-servlet-containers.html#howto-configure-ssl
有關配置客戶端RestTemplate的信息,請參見此處(4.使用SSL的Spring RestTemplate) http://www.baeldung.com/httpclient-ssl
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.