uwsgi_ssl_certificate_cache

The 'uwsgi_ssl_certificate_cache' directive sets the caching behavior for SSL certificates when using the uWSGI server protocol in NGINX, improving performance by reducing SSL handshake times.

Syntaxuwsgi_ssl_certificate_cache size time;
Defaultnone
Contexthttp, server, location
Arguments1-3

Description

The 'uwsgi_ssl_certificate_cache' directive allows you to define how SSL certificates are cached while handling uWSGI requests in NGINX. When configured, NGINX caches the SSL certificate for the duration specified, allowing for quicker subsequent connections without renegotiating SSL. This can greatly enhance the performance of your application by minimizing latency during SSL handshakes.

The parameters for this directive can specify cache size, time period for caching, and any additional directives required for caching. Specifying the cache parameters allows users to optimize resource use based on their specific performance needs and server capabilities. For example, larger cache sizes can lead to better performance at the expense of higher memory usage.

The directive must be placed within an appropriate context such as http, server, or location and is beneficial for applications that consistently use SSL and require frequent connections, such as web applications utilizing uWSGI protocols.

Config Example

uwsgi_ssl_certificate_cache 10m 30s;

Ensure that the cache size and duration are appropriate for your application needs to avoid unnecessary memory usage.

Incorrect values can lead to SSL issues if certificates are not refreshed correctly within their lifespan.

← Back to all directives