Skip to content
This repository has been archived by the owner on Mar 16, 2020. It is now read-only.

vislee/ngx_http_multiple_ssl_module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Name

Build Status Coverage Status

ngx_http_multiple_ssl_module - Enable Dynamic Load Multiple SSL On Virtual Host Using SNI.

Table of Contents

Status

The module was scrapped, Because nginx already supports it.

ssl_certificate ${host}.rsa.crt;
ssl_certificate_key ${host}.rsa.key;

Install

./configure --prefix=/usr/local/nginx --with-http_ssl_module --add-module=github.com/vislee/ngx_http_multiple_ssl_module

Back to TOC

Example Configuration

    server {
        listen       443 ssl default;
        server_name  -;

        ssl_certificate      cert.pem;
        ssl_certificate_key  cert.key;

        multiple_ssl on;
        multiple_ssl_cert_path ./conf/;
        multiple_ssl_servernames *.vis.com vis.com.crt;
        multiple_ssl_servernames www.vislee.com vis.com.crt;

        ssl_session_cache    shared:SSL:1m;
        ssl_session_timeout  5m;

        ssl_ciphers  HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers  on;

        location / {
            proxy_pass http://127.0.0.1;
        }
    }

Directives

multiple_ssl

syntax: multiple_ssl <on|off>

default: off

context: server

Enable Dynamic load multiple certificates.

multiple_ssl_cert_path

syntax: multiple_ssl_cert_path path

default: no

context: http,server

Specify the certificate path.

The default cert file format:


hostname.crt

hostname.key

multiple_ssl_servernames

syntax: multiple_ssl_servernames servername crt

default: no

context: server

Specify the mapping of servername and certificate.

Back to TOC

Author

wenqiang li(vislee)

Back to TOC

Copyright and License

This module is licensed under the BSD license.

Copyright (C) 2014-2019, by vislee.

All rights reserved.

Back to TOC

About

通过在指定目录上传ssl证书,根据SNI的HostName动态加载对应证书。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published