Skip to content

Default host certificate leaks implementation information in organization subject #1024

@qriff

Description

@qriff

Describe the bug
The generated default self signed host certificate leaks implementation name "Nginx Proxy Manager" in the "Organizational" (O) subject field.

To Reproduce
Steps to reproduce the behavior:

  1. Browse to default https host
  2. Review certificate details

Expected behavior
Field should be generic (not reference implementation), like localhost or empty, or definable.

In \docker\rootfs\etc\services.d\nginx\run
`

Generate dummy self-signed certificate.

if [ ! -f /data/nginx/dummycert.pem ] || [ ! -f /data/nginx/dummykey.pem ]
then
echo "Generating dummy SSL certificate..."
openssl req
-new
-newkey rsa:2048
-days 3650
-nodes
-x509
-subj '/O=Nginx Proxy Manager/OU=Dummy Certificate/CN=localhost'
-keyout /data/nginx/dummykey.pem
-out /data/nginx/dummycert.pem
echo "Complete"
fi
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions