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