... | ... | @@ -10,24 +10,25 @@ Install requirements |
|
|
### Installation
|
|
|
|
|
|
Clone curl source code using `git`.
|
|
|
```
|
|
|
```bash
|
|
|
$ git clone https://github.com/curl/curl
|
|
|
```
|
|
|
JetConf is using `http2`, so enable it in build configuration settings.
|
|
|
```
|
|
|
```bash
|
|
|
$ ./buildconf
|
|
|
$ ./configure --with-nghttp2 --prefix=/usr/local --with-ssl=/usr/local/ssl
|
|
|
```
|
|
|
In configuration list check if `HTTP2 support` is `Enabled`.
|
|
|
|
|
|
Now you can **install** curl.
|
|
|
```
|
|
|
```bash
|
|
|
$ make
|
|
|
$ sudo make install
|
|
|
$ sudo ldconfig
|
|
|
```
|
|
|
### Curl command for JetConf
|
|
|
After this command you shoud get some data from **jetconf server** in json.
|
|
|
```
|
|
|
curl --http2 -k --cert-type PEM -E <path to .PEM cert> -X GET https://<jetconf server ip adress>:8443/restconf/data
|
|
|
After this command you shoud get some data from **jetconf server** in json.
|
|
|
```bash
|
|
|
curl --http2 -k --cert-type PEM -E <path_to_.pem_cert> -X GET https://<jetconf server ip adress>:8443/restconf/data
|
|
|
```
|
|
|
For genereting testing Client certificate for Curl see [Generaterating certificates](certificates) |