2015-11-23 01:15:39 +00:00
|
|
|
<!--[metadata]>
|
|
|
|
+++
|
|
|
|
draft = true
|
|
|
|
+++
|
|
|
|
<![end-metadata]-->
|
|
|
|
|
2015-01-07 00:32:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
This is an initial attempt to make it easier to test the examples in the https.md
|
2016-02-23 03:42:10 +00:00
|
|
|
doc.
|
2015-01-07 00:32:23 +00:00
|
|
|
|
2016-02-23 03:42:10 +00:00
|
|
|
At this point, it has to be a manual thing, and I've been running it in boot2docker.
|
2015-01-07 00:32:23 +00:00
|
|
|
|
2016-02-23 03:42:10 +00:00
|
|
|
My process is as following:
|
|
|
|
|
|
|
|
$ boot2docker ssh
|
|
|
|
$$ git clone https://github.com/docker/docker
|
|
|
|
$$ cd docker/docs/articles/https
|
|
|
|
$$ make cert
|
2015-01-07 00:32:23 +00:00
|
|
|
|
|
|
|
lots of things to see and manually answer, as openssl wants to be interactive
|
2016-02-23 03:42:10 +00:00
|
|
|
|
2015-01-07 00:32:23 +00:00
|
|
|
**NOTE:** make sure you enter the hostname (`boot2docker` in my case) when prompted for `Computer Name`)
|
|
|
|
|
2016-02-23 03:42:10 +00:00
|
|
|
$$ sudo make run
|
2015-01-07 00:32:23 +00:00
|
|
|
|
2016-02-23 03:42:10 +00:00
|
|
|
Start another terminal:
|
2015-01-07 00:32:23 +00:00
|
|
|
|
2016-02-23 03:42:10 +00:00
|
|
|
$ boot2docker ssh
|
|
|
|
$$ cd docker/docs/articles/https
|
|
|
|
$$ make client
|
2015-01-07 00:32:23 +00:00
|
|
|
|
2016-02-23 03:42:10 +00:00
|
|
|
The last will connect first with `--tls` and then with `--tlsverify`, both should succeed.
|