nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

ssl_client_certificate

Open aaronbolton opened this issue 3 years ago • 4 comments

I would like the ability to use client certificate authentication so I believe I need to add

ssl_client_certificate /etc/nginx/client_certs/ca.crt;

and the relevant ca.crt to my trusted CA where would be the best Custom Nginx Config to place this and also would this be a consideration for the UI at some point?

aaronbolton avatar Jun 09 '22 09:06 aaronbolton

Hi Aaron,

It isn't perfect, quite manual, but I managed to do this by adding in each proxy host, in the advanced tab, the lines you provide.

Screenshot_20220630-074357_Chrome

Hope this help you or another!

EDIT: I've just looked the advanced setup guide and you can add it in custom conf.d if you want to have it on each proxy

https://nginxproxymanager.com/advanced-config/#custom-nginx-configurations

poaudet avatar Jun 30 '22 11:06 poaudet

Does this keep the setting between updates then? as I found I can go in to each and change and random setting on/off then it fixes it for that host

aaronbolton avatar Jun 30 '22 13:06 aaronbolton

If you have set your volume to be persistent (eg: you have a folder on your host to store your /data/ folder from the container) you should be good!

see Quick Setup:

version: '3'
services:
  app:
    image: 'jc21/nginx-proxy-manager:latest'
    restart: unless-stopped
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt

poaudet avatar Jun 30 '22 20:06 poaudet

Ah thanks for the comment i was getting mixed up with a bug I had also raised, thankyou for the tip

aaronbolton avatar Jul 01 '22 07:07 aaronbolton