Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/342.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/rust/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 带有x509证书的RestTemplate_Java_Spring_Https_Spring Boot_Resttemplate - Fatal编程技术网

Java 带有x509证书的RestTemplate

Java 带有x509证书的RestTemplate,java,spring,https,spring-boot,resttemplate,Java,Spring,Https,Spring Boot,Resttemplate,我必须使用强制使用https访问的安全端点,该端点的作者向我提供了x509 cetrificate文件,据我所知,我应该在向端点发出请求时使用该文件。在使用SpringBoot时,我一直在寻找将RestTemplate与x509.crt文件一起使用的一些示例,但找不到它。这是可能的还是应该使用另一个http客户端(不是Spring RestTemplate) 谢谢 安德烈检查这个

我必须使用强制使用https访问的安全端点,该端点的作者向我提供了x509 cetrificate文件,据我所知,我应该在向端点发出请求时使用该文件。在使用SpringBoot时,我一直在寻找将RestTemplate与x509.crt文件一起使用的一些示例,但找不到它。这是可能的还是应该使用另一个http客户端(不是Spring RestTemplate)

谢谢

安德烈

检查这个