I have to make a OCSP cert verification call with the cert issued by some system . The OCSP team shared the below curl url as sample
curl --cert <XYZ>.pem.txt --key <XYZprivatekey>.key.pem --cacert ABCASDStaging.cer.txt https://osd.staging.sd.sd.sg --data-binary @request.der --header "Content-Type:application/ocsp-requests" --header "Host:ocsp.staging.xvc.sdf.sg" --output asdasd-ocsp-resp.der --insecure -v >> STG CDNS.txt2>&1
Im trying to code the above curl request in to java rest template request but unable to proceed. Can help to convert this request in to java rest template
Created the header
HttpHeaders headers = new HttpHeaders();
headers.add(HttpHeaders.CONTENT_TYPE, "ocsp-requests");
headers.add("Host", "ocsp.staging.xvc.sdf.sg");