Skip to content

Certificate renewal fails with Force SSL enabled and Port 443 blocked #4661

@pkess

Description

@pkess

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug
In an environment where internal services shall be accessed by https but not exposed to outside one could set up the force ssl solution and block port 443 to outside to ensure the service is intern only. While the service shall be available with a valid ssl certificate from intern the certificate should be requested from letsencrypt. This setup fails when "force ssl" is enabled

Nginx Proxy Manager Version
Tested with 2.12.3 and 2.12.6

To Reproduce
Steps to reproduce the behavior:

  1. Configure Proxy host for any service
  2. Forward port 80 from public to npm
  3. Block Port 443 from public
  4. Setup dns according to documentation
  5. Request first ssl certificate in npm -> will work while ssl is not already set up and therefore no ssl forward is activated
  6. Try to renew certificate -> The request from lets encrypt to the acme challenge will get redirected to https but as port 443 is blocked the challenge will not be successful and no certificate gets signed

Expected behavior
The whole acme challenge should work only with http as it does as well when the first certificate gets generated

Operating System
Tested on a ubuntu vm

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy