LeoKlaus / Paperparrot

A native Swift app to manage all your documents. Fully compatible with Paperless-ngx
https://paperparrot.me
98 stars 0 forks source link

[BUG] Adding an internal Server results in error #212

Open bpereto opened 1 week ago

bpereto commented 1 week ago

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):

Additional context

LeoKlaus commented 1 week ago

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