)]}'
{
  "commit": "2893cef06ae00e41207790e95e8c3ec89799d93c",
  "tree": "2cbc64a4711ef5ad573892c7e2f9b4a7ca94142b",
  "parents": [
    "6ccab51595a2fff05253045380172d3b7901306b"
  ],
  "author": {
    "name": "Maxim Dounin",
    "email": "mdounin@mdounin.ru",
    "time": "Thu Oct 22 18:02:28 2020 +0300"
  },
  "committer": {
    "name": "Maxim Dounin",
    "email": "mdounin@mdounin.ru",
    "time": "Thu Oct 22 18:02:28 2020 +0300"
  },
  "message": "SSL: ssl_reject_handshake directive (ticket #195).\n\nIn some cases it might be needed to reject SSL handshake based on SNI\nserver name provided, for example, to make sure an invalid certificate\nis not returned to clients trying to contact a name-based virtual server\nwithout SSL configured.  Previously, a \"ssl_ciphers aNULL;\" was used for\nthis.  This workaround, however, is not compatible with TLSv1.3, in\nparticular, when using BoringSSL, where it is not possible to configure\nTLSv1.3 ciphers at all.\n\nWith this change, the ssl_reject_handshake directive is introduced,\nwhich instructs nginx to reject SSL handshakes with an \"unrecognized_name\"\nalert in a particular server block.\n\nFor example, to reject handshake with names other than example.com,\none can use the following configuration:\n\n    server {\n        listen 443 ssl;\n        ssl_reject_handshake on;\n    }\n\n    server {\n        listen 443 ssl;\n        server_name example.com;\n        ssl_certificate example.com.crt;\n        ssl_certificate_key example.com.key;\n    }\n\nThe following configuration can be used to reject all SSL handshakes\nwithout SNI server name provided:\n\n    server {\n        listen 443 ssl;\n        ssl_reject_handshake on;\n    }\n\n    server {\n        listen 443 ssl;\n        server_name ~^;\n        ssl_certificate example.crt;\n        ssl_certificate_key example.key;\n    }\n\nAdditionally, the ssl_reject_handshake directive makes configuring\ncertificates for the default server block optional.  If no certificates\nare configured in the default server for a given listening socket,\ncertificates must be defined in all non-default server blocks with\nthe listening socket in question.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "dfb816055ad274f8f941396f2031409d16e04d4a",
      "old_mode": 33188,
      "old_path": "src/event/ngx_event_openssl.c",
      "new_id": "2eef87e5e8464d7355e1eaf1e21b99bd51c2d0b5",
      "new_mode": 33188,
      "new_path": "src/event/ngx_event_openssl.c"
    },
    {
      "type": "modify",
      "old_id": "821bb13d1c11738f262d67ace345db9ed71123a0",
      "old_mode": 33188,
      "old_path": "src/event/ngx_event_openssl.h",
      "new_id": "329760d0937350b92075499c2fb16d86772c0f39",
      "new_mode": 33188,
      "new_path": "src/event/ngx_event_openssl.h"
    },
    {
      "type": "modify",
      "old_id": "2702f1e20b04333a6e33f85e9c100eacaa86781e",
      "old_mode": 33188,
      "old_path": "src/http/modules/ngx_http_ssl_module.c",
      "new_id": "e062b03a116cecfb72f0941c827681d4121ace9f",
      "new_mode": 33188,
      "new_path": "src/http/modules/ngx_http_ssl_module.c"
    },
    {
      "type": "modify",
      "old_id": "127570332a5ca343cffc6c3d053154df1484938f",
      "old_mode": 33188,
      "old_path": "src/http/modules/ngx_http_ssl_module.h",
      "new_id": "7ab0f7eae28f7cd9eba52106a38ae8c811c39995",
      "new_mode": 33188,
      "new_path": "src/http/modules/ngx_http_ssl_module.h"
    },
    {
      "type": "modify",
      "old_id": "2a0528c68345bebbf4d8bfdaf00a10c87adecb96",
      "old_mode": 33188,
      "old_path": "src/http/ngx_http_request.c",
      "new_id": "204a9399de3b790038797a5be52d6e3eb1caa91b",
      "new_mode": 33188,
      "new_path": "src/http/ngx_http_request.c"
    }
  ]
}
