【问题标题】:Using RestTemplate to send authorization certificates使用 RestTemplate 发送授权证书
【发布时间】:2015-04-15 09:07:50
【问题描述】:

如何在 Spring 中使用 RestTemplate 来执行这样的请求?

curl --key test.key --cert test.pem --cacert testca.pem -k https://example.com

【问题讨论】:

    标签: java spring maven curl


    【解决方案1】:

    我相信您可以将它们作为标题发送。有一个名为 HttpEntity 的类,可用于将标头和请求发送到 REST 模板。如需更多参考,请找到以下链接

    Spring Basic Authentication

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-15
      • 1970-01-01
      相关资源
      最近更新 更多