簡體   English   中英

Spring Boot-具有自簽名證書的客戶端服務器REST API

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM