2

How can I use RestTemplate in Spring to perform a request like this?

curl --key test.key --cert test.pem --cacert testca.pem -k https://example.com
RĂ¼diger Herrmann
  • 20,512
  • 11
  • 62
  • 79

1 Answers1

0

you can send them as Headers i believe. There is class called as HttpEntity which can be used for sending the headers and request to the REST template. For more reference please find the below link

Spring Basic Authentication

chetank
  • 392
  • 3
  • 17