I run Sonarr on my Synology NAS. This worked quite well until about three months ago. All of a sudden Sonarr couldn’t check the indexers anymore. After some search I found this exception in the logs (System / Log Files):
21-1-8 16:14:42.6|Debug|NewznabCapabilitiesProvider| Failed to get newznab api capabilities from https://api.nzbgeek.info [v184.108.40.20644] System.Net.WebException: Error: SecureChannelFailure (Authentication failed, see inner exception.): 'https://api.nzbgeek.info/api?t=caps&apikey=(removed) ---> System.Net.WebException: Error: SecureChannelFailure (Authentication failed, see inner exception.) ---> System.Security.Authentication.AuthenticationException: Authentication failed, see inner exception. ---> Mono.Btls.MonoBtlsException: Ssl error:0f000078: elliptic curve routines:OPENSSL_internal:POINT_IS_NOT_ON_CURVE at /spksrc/spk/mono/work-aarch64-6.1/mono-220.127.116.11/external/boringssl/crypto/ec/ec.c:835
I opened an issue in the Sonarr forum but nobody answered. So I digged a bit more myself and finally found a similar issue. They also got this elliptic curve routines:OPENSSL_internal:POINT_IS_NOT_ON_CURVE. According to them the newer BoringSSL version (which is used by Mono) has this problem on ARM64.
So I installed an old Mono version with these steps:
- I connected to my NAS via SSH
- edit /var/packages/mono/INFO
- change version from “18.104.22.168” to “0.5.20.1”
- note arch
- browse to https://synocommunity.com/package/mono, find release 22.214.171.124-11 and copy the link to your architecture.
- in the shell do
wget <link to Mono on your architecture>
synopkg install <downloaded .spk file>
- restart your NAS
- check if Mono is running after the restart
That version 126.96.36.199 is from 2018, but everything seems to work again. Maybe a newer version also works, but I didn’t want to check each and every version inbetween.
A few days ago it stopped working again. The exception was very similar, but not exactly the same:
21-4-14 08:56:50.0|Error|TaskExtensions|Task Error [v188.8.131.524] System.Net.WebException: Error: TrustFailure (One or more errors occurred.): 'https://services.sonarr.tv/v1/update/master?version=184.108.40.2064&os=linux&runtimeVer=220.127.116.11&active=true' ---> System.Net.WebException: Error: TrustFailure (One or more errors occurred.) ---> System.AggregateException: One or more errors occurred. ---> System.Security.Authentication.AuthenticationException: A call to SSPI failed, see inner exception. ---> Mono.Btls.MonoBtlsException: Ssl error:1000007d: SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED at /spksrc/spk/mono/work-aarch64-6.1/mono-18.104.22.168/external/boringssl/ssl/handshake_client.c:1132
The same exception also came when querying the indexer on a totally different domain.
So instead of
elliptic curve routines:OPENSSL_internal:POINT_IS_NOT_ON_CURVE I now got SSL routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED.
I found the solution in another Sonarr forum posting. This time it seemed like the root certificate of “DigiCert Baltimore Root” (the root of Cloudflare) was not valid anymore.
You can validate that it really is a Mono problem by doing the following in a shell on your NAS:
$ cd /var/packages/mono/target/bin $ ./csharp -e 'new System.Net.WebClient().DownloadString("https://services.sonarr.tv")'
This should also throw the same exception which you found in the logs.
It turns out that BoringSSL maintains its own list of root SSL certificates. I’d really be interested why. The Synology box itself does have a current CA list. You can update all certificates which Mono uses to those of the Synology system with:
$ sudo ./cert-sync /etc/ssl/certs/ca-certificates.crt
Then you can try the csharp command from above again and this time it should work.
Unfortunatly forums.sonarr.tv closes any issues automatically after two months so I cannot add this info to the thread from there. But I’ll keep it here in the hope that somebody finds it useful.
According to hgy59 the
POINT_IS_NOT_ON_CURVE problem has already been fixed in the source of BoringSSL in March 2020. But until this gets picked up by Mono, released and then rolled out to Synology will take time. Lets hope that Mono can be normally updated to the latest version at some point in time.
Share onTwitter Facebook LinkedIn
Leave a comment
Your email address will not be published. Required fields are marked *