Changes between Initial Version and Version 1 of Ticket #2476


Ignore:
Timestamp:
03/29/23 07:31:49 (13 months ago)
Author:
Preetham777@…
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2476 – Description

    initial v1  
    11Hi Team,
    22
    3 I'm trying a setup where the client cert auth is enabled to optional_on_ca, and when the curl is initiated with client cert which is the chain of certificate ( in the order of client, inter CA,  root CA cert). But when checked in the header ssl-client-cert only the client cert is being added and interCA and rootCA are discarded.
     3I'm trying a setup where the client cert auth is enabled to optional_no_ca, and when the curl is initiated with client cert which is the chain of certificate ( in the order of client, inter CA,  root CA cert). But when checked in the header ssl-client-cert only the client cert is being added and interCA and rootCA are discarded.
    44Is is supported by Nginx and if so yes is there any documentation on the same?
     5
     6
     7
     8here is the trimmed version of nginx
     9
     10```
     11        ssl_certificate     instance3.pem;
     12
     13        ssl_certificate_key instance3.pem;
     14
     15        ...
     16
     17        server {
     18
     19                ...
     20
     21                ssl_client_certificate                  ca-pg-ca.pem;
     22
     23                ssl_verify_client                       optional_no_ca;
     24
     25                ssl_verify_depth                        4;
     26
     27                location ~* "^/" {
     28
     29                        ...
     30
     31                        client_max_body_size                    1m;
     32
     33                        proxy_set_header Host                   $best_http_host;
     34
     35                        # Pass the extracted client certificate to the backend
     36
     37                        proxy_set_header ssl-client-cert        $ssl_client_escaped_cert;
     38
     39                        proxy_set_header ssl-client-verify      $ssl_client_verify;
     40
     41                        proxy_set_header ssl-client-subject-dn  $ssl_client_s_dn;
     42
     43                        proxy_set_header ssl-client-issuer-dn   $ssl_client_i_dn;
     44
     45                        # Allow websocket connections
     46
     47                        proxy_set_header                        Upgrade           $http_upgrade;
     48
     49                        proxy_set_header                        Connection        $connection_upgrade;
     50
     51                        proxy_set_header X-Request-ID           $req_id;
     52
     53                        proxy_set_header X-Real-IP              $remote_addr;
     54
     55                        proxy_set_header X-Forwarded-For        $remote_addr;
     56
     57                        proxy_set_header X-Forwarded-Host       $best_http_host;
     58
     59                        proxy_connect_timeout                   5s;
     60
     61                        proxy_send_timeout                      60s;
     62
     63                        proxy_read_timeout                      60s;
     64
     65                        proxy_buffering                         off;
     66
     67                        proxy_buffer_size                       4k;
     68
     69                        proxy_buffers                           4 4k;
     70
     71                        proxy_max_temp_file_size                1024m;
     72
     73                        proxy_request_buffering                 on;
     74
     75                        proxy_http_version                      1.1;
     76
     77                        proxy_cookie_domain                     off;
     78
     79                        proxy_cookie_path                       off;
     80
     81                        proxy_redirect  off;
     82
     83                }
     84
     85        }
     86```
     87
     88
     89* instance3.pem contains the server cert and key in the pem format.
     90* ca-pg-ca.pem contains only rootCa cert required for the client cert auth.
     91
     92