Nice :-)
Under the hood it uses (puppetlabs.http.client.common/make-request) . I
found the definition of the protocol, but not the actual implementation of
make-request .
Well, that doesn't matter so much, now I've got something that works!
Thank you again
-- Pierre Masci
On 24 February 2017
On Thu, Feb 23, 2017 at 5:11 PM, mascip wrote:
> Amazing, thank you James, thank you Micheal, it works!
>
> In Perl things are often pretty complex, but in this specific case the
> code is dead easy:
>
> my $client = REST::Client->new(
> cert => '/path/to/ssl.cert',
> key
Amazing, thank you James, thank you Micheal, it works!
In Perl things are often pretty complex, but in this specific case the code
is dead easy:
my $client = REST::Client->new(
cert => '/path/to/ssl.cert',
key => '/path/to/ssl.key');
my $response = $client->POST(
I had to do the same several months ago. You will need to create a java key
store with the certificate. Once you have a keystore, here's the clj-http
docs on how to include it in an http request.
https://github.com/dakrone/clj-http#keystores-trust-stores
(client/post "https://example.com;
There's an article here that might be useful to you:
https://www.lvh.io/posts/https-requests-with-client-certificates-in-clojure.html
With clj-http, you have to use a Java keystore. I wrote a library a few
years ago for importing certificates into keystores in Clojure, though I'm
not sure how
Hi, I am new to Clojure and using clj-http for the first time, to implement
a REST client.
I don't find anywhere how to indicate where my SSL certificate is located.
Here is what I did:
(ns my-client.core
(:require [clj-http.client :as client]
[clojure.pprint :refer :all]))
(def