Skip to content

Certificate hostname mismatch error in v1.2.1 (works in v1.2.0) #125

@Scemp

Description

@Scemp

Environment:

  • App version: 1.2.1
  • Previous working version: 1.2.0
  • Android version: 16
  • Device: OnePlus 15

Steps to reproduce:

  1. Install opencloud/android v1.2.1
  2. Enter server URL: "https://truenas:30259"
  3. Accept/trust the certificate when prompted

Expected behavior:
After trusting the certificate, the app should proceed to authentication (similar to v1.2.0, which redirects to the browser login and works correctly).

Actual behavior:
After trusting the certificate, a new window appears with the error:

the url does not match the hostname in the certificate

Additional context:

  • Downgrading to version 1.2.0 resolves the issue.
  • In v1.2.0, entering the same URL redirects to the browser for login, and everything works as expected.
  • This suggests a regression introduced in v1.2.1 related to certificate or hostname validation.

Notes:

  • The setup uses a local hostname ("truenas") with a custom/self-signed certificate.
  • Behavior change seems specific to the new version’s handling of certificates or redirect/login flow.

Let me know if logs or additional debugging info would help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions