Sign inSign up

alchemystudio/nginx-ssl-bidirection

By alchemystudio

•Updated over 6 years ago

Image
1

365

alchemystudio/nginx-ssl-bidirection repository overview

⁠基于nginx的「ssl双向握手」测试服务容器

⁠架构图

⁠下载image

$ docker pull alchemystudio/nginx-ssl-bidirection

⁠手工编译容器

$ docker build --no-cache . 

⁠手工启动容器

$ docker run -it -p 443:443 alchemystudio/nginx-ssl-bidirection sh

进入容器shell后启动nginx:

root# nginx

在host宿主访问服务:

$ curl --cacert /cert/server.crt --cert /cert/client.crt --key /cert/client.key https://localhost

⁠自动启动容器和服务

$ docker-compose pull
$ docker-compose up
$ docker cp nginx-ssl-bidirection_nginx_1:/cert/server.crt .
$ docker cp nginx-ssl-bidirection_nginx_1:/cert/client.crt .
$ docker cp nginx-ssl-bidirection_nginx_1:/cert/client.key .
$ curl --cacert ./server.crt --cert ./client.crt --key ./client.key https://localhost

⁠用到本容器的文章

Tag summary

Content type

Image

Digest

Size

84.2 MB

Last updated

over 6 years ago

docker pull alchemystudio/nginx-ssl-bidirection