Paperparrot icon indicating copy to clipboard operation
Paperparrot copied to clipboard

[BUG] Adding an internal Server results in error

Open 0asys opened this issue 1 year ago • 1 comments

Describe the bug Adding a Server with an internal available Hostname results in an error "A server with the specified hostname could not be found".

The DNS Servers are correctly configured and available on the system and points to an internal DNS:

dig paperless.app.internal
paperless.app.internal has address 10.0.0.10

To Reproduce Steps to reproduce the behavior:

  1. Add internal DNS Record "paperless.app.internal"
  2. Add Server in paperparrot
  3. Enter https://paperless.app.internal
  4. Error: "A server with the specified hostname could not be found"

Expected behavior The Server was found and added.

Screenshots

Environment(please complete the following information):

  • Device: Apple MacBook
  • OS: Macos
  • Version: Somnoa
  • Server Version (if applicable) [e.g. Paperless-ngx 1.11.3]

Additional context

0asys avatar Jun 22 '24 20:06 0asys

Hey bpereto, thank you for reaching out!

I just tested this (even using paperless.app.internal as hostname) and it worked as expected. Is the Paperless web UI really accessible from that machine at https://paperless.app.internal?

If you have to append a port like :8080, you will also have to specify that port in Paperparrot. For local https to work, your Mac has to trust the root certificate used to sign the certificate your paperless server is using.

Marcel in the Paperparrot Discord also noted that apparently some flags have to be set when generating a self signed certificate for them to be trusted by iOS (the same likely applies to macOS):

# Used for extensions to the self-signed cert OpenSSL is going to generate for us
x509_extensions = x509_extensions

[x509_extensions]
basicConstraints = CA:true
keyUsage = digitalSignature
extendedKeyUsage = serverAuth
subjectKeyIdentifier = hash

LeoKlaus avatar Jun 23 '24 08:06 LeoKlaus