Serving a static file for a certain user agent

I have the following config: server { listen 80; listen [::]:80; server_name example.com; return 302 https://$server_name$request_uri; } server { # SSL configuration listen 443 ssl http2; listen [::]:443 ssl http2; ssl on; ssl_certificate /etc/ssl/certs/cert.pem; ssl_certificate_key /etc/ssl/private/cert.pem; server_name example.com; root /var/www/example; index index.html; location / { if ( $http_user_agent = “Dinosaur” ) { rewrite https://example.com/ https://example.com/example.gif;…

Details

LibreSSL errors when attempting to copy extensions from CSR to x509 Cert

I’m trying to create an x509 certificate with a very specific set of x509v3 Extensions from a CSR (that already has these Extensions set). I have a CSR in PEM form (?). It looks like this: —–BEGIN CERTIFICATE REQUEST—– MIIEjDCCAnQCAQAwFT… …EQFqw== —–END CERTIFICATE REQUEST—– I’m trying to sign it by piping it through libressl (I’m…

Details