This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
[BUG] error "invalid peer certificate: UnknownIssuer" for HTTPS profile without full-chain certification #903
Labels
bug
Something isn't working
Describe the bug
When importing a profile hosted on a HTTPS server using non full-chain certification, it may fail with this error: "error trying to connect: invalid peer certificate contents: invalid peer certificate: UnknownIssuer;"
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The profile should be imported if it's a valid profile, or report some other error about the profile itself.
However it's saying the peer certification issue and refusing to download the profile.
Only by changing the certification configuration in nginx to use full-chain certification, this profile can be imported then.
Screenshots
N/A
Information
Additional context
What I can confirm is that using the certification w/o intermediate CA is definitely valid - it would rely on OS or browser provided root CA. Browser and Clash for Windows both accepts such certification well.
I guess this is somehow related to reqwest, but I'm not familiar with that.
The text was updated successfully, but these errors were encountered: