nextcloud / nextcloud/android

Certificate subject alternative name not working with IP address

Open
#11,439 4 comments 0 reactions 0 assignees View on GitHub
bug connectivity feature: authentication
Dominant language
Kotlin
Stars
5.6k
Forks
2k
Avg merge
2d 18h
Merged PRs (30d)
92

Description

### ⚠️ Before posting ⚠️

- [X] This is a **bug**, not a question or an enhancement.
- [X] I've [searched for similar issues](https://github.com/nextcloud/android/issues) and didn't find a duplicate.
- [X] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [X] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).

### Steps to reproduce

Connecting over IP to Nextcloud server could not verify the certificate.

### Expected behaviour

Nextcloud App should read the certificate subject alternative name which contains the IP.
Working as expected on the same device with Chrome.

### Actual behaviour

Nextcloud app could not verify the server (Nextcloud Talk App works).

![Nextcloud App Screenshot_20230305-163732](https://user-images.githubusercontent.com/11032756/223138878-662b3d34-e4a9-4d32-b5fa-994eea5861aa.png)
![Chrome Screenshot_20230305-163918](https://user-images.githubusercontent.com/11032756/223140570-efb5ab00-6d1a-4e0c-9889-fff80987cad6.png)

### Android version

13

### Device brand and model

Pixel 6a

### Stock or custom OS?

Stock

### Nextcloud android app version

3.24.1

### Nextcloud server version

25.0.4

### Using a reverse proxy?

No

### Android logs

_No response_

### Server error logs

_No response_

### Additional information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.