Vs
Size: a a a
Vs
Y
AG
AN
Note that using variables implies that a certificate will be loaded for each SSL handshake, and this may have a negative impact on performance.
The value data:$variable can be specified instead of the file (1.15.10), which loads a certificate from a variable without using intermediate files. Note that inappropriate use of this syntax may have its security implications, such as writing secret key data to error log.
EN
Vs
EN
Vs
Vs
AN
/tmp/nginx # curl -sk -D - https://127.0.0.1:38080/
HTTP/1.1 200 OK
Server: nginx/1.16.1
Date: Fri, 20 Dec 2019 23:52:11 GMT
Content-Type: text/plain
Content-Length: 2
Connection: keep-alive
OK
/tmp/nginx # mv ssl.* ../
/tmp/nginx # curl -sk -D - https://127.0.0.1:38080/
/tmp/nginx # mv ../ssl.* .
/tmp/nginx # curl -sk -D - https://127.0.0.1:38080/
HTTP/1.1 200 OK
Server: nginx/1.16.1
Date: Fri, 20 Dec 2019 23:52:38 GMT
Content-Type: text/plain
Content-Length: 2
Connection: keep-alive
OK
2019/12/21 00:52:29 [error] 25976#0: *4 cannot load certificate "/tmp/nginx/ssl.cert": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/tmp/nginx/ssl.cert','r') error:2006D080:BIO routines:BIO_new_file:no such file) while SSL handshaking, client: 127.0.0.1, server: 0.0.0.0:38080
2019/12/21 00:52:29 [info] 25976#0: *4 SSL_do_handshake() failed (SSL: error:1417A179:SSL routines:tls_post_process_client_hello:cert cb error) while closing request, client: 127.0.0.1, server: 0.0.0.0:38080
map $http_ssl $sslname {
default 'ssl';
}
server {
listen 38080 ssl ;
ssl_certificate /tmp/nginx/$sslname.cert ;
ssl_certificate_key /tmp/nginx/$sslname.key ;
location / { return 200 "OK"; }
}
EN
Vs
AG
/tmp/nginx # curl -sk -D - https://127.0.0.1:38080/
HTTP/1.1 200 OK
Server: nginx/1.16.1
Date: Fri, 20 Dec 2019 23:52:11 GMT
Content-Type: text/plain
Content-Length: 2
Connection: keep-alive
OK
/tmp/nginx # mv ssl.* ../
/tmp/nginx # curl -sk -D - https://127.0.0.1:38080/
/tmp/nginx # mv ../ssl.* .
/tmp/nginx # curl -sk -D - https://127.0.0.1:38080/
HTTP/1.1 200 OK
Server: nginx/1.16.1
Date: Fri, 20 Dec 2019 23:52:38 GMT
Content-Type: text/plain
Content-Length: 2
Connection: keep-alive
OK
2019/12/21 00:52:29 [error] 25976#0: *4 cannot load certificate "/tmp/nginx/ssl.cert": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/tmp/nginx/ssl.cert','r') error:2006D080:BIO routines:BIO_new_file:no such file) while SSL handshaking, client: 127.0.0.1, server: 0.0.0.0:38080
2019/12/21 00:52:29 [info] 25976#0: *4 SSL_do_handshake() failed (SSL: error:1417A179:SSL routines:tls_post_process_client_hello:cert cb error) while closing request, client: 127.0.0.1, server: 0.0.0.0:38080
map $http_ssl $sslname {
default 'ssl';
}
server {
listen 38080 ssl ;
ssl_certificate /tmp/nginx/$sslname.cert ;
ssl_certificate_key /tmp/nginx/$sslname.key ;
location / { return 200 "OK"; }
}
EN
AN
AG
AG
Vs
dehydrated
чисто bashAG