Ssl issues on a mac

Version
2.0.0.5241
Mono Version
5.12.0.301
osx
10.13.6

I’m having trouble getting sonarr to use ssl calls to https indexers. I get a SecureChannelFailure (A call to SSPI failed error. Needed to upgrade mono, since another program needs a more current version (had 3.12 before)

However, added export MONO_TLS_PROVIDER=legacy to my .profile and when I start sonarr from the terminal, it works. markus101 indicated that sonar can use the regular stack and changed it to btls. Also populated the certs with curl -sS https://curl.haxx.se/ca/cacert.pem | cert-sync --user /dev/stdin

Still having trouble when launching the application, rather than open it from the terminal (Sonarr.app/Contents/MacOS/Sonarr). Since i created a user agent to launch it at boot time, it is isn’t a problem, though not very mac like way of doing it.

Is there something else I’m missing? I would assume that double clicking the application should work

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>tv.sonarr</string>
	<key>EnvironmentVariables</key>
	<dict>
		<key>PATH</key>
		<string>/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin</string>
		<key>MONO_TLS_PROVIDER</key>
		<string>btls</string>
	</dict>
	<key>KeepAlive</key>
	<true/>
	<key>RunAtLoad</key>
	<true/>
	<key>ProgramArguments</key>
	<array>
		<string>/bin/sh</string>
		<string>Applications/ servers/Sonarr.app/Contents/MacOS/Sonarr</string>
	</array>
	<key>Nice</key>
	<integer>0</integer>
</dict>
</plist>

Trace logs would be helpful to diagnose further. Offhand I don’t have anything to suggest other than trying mono 5.10 as 5.12 has had several issues.

just tried mono 5.10, but same results.

By the way, the trace file includes api keys

This is the debug file:
https://pastebin.com/rudDiFv5

Apparently this error happens on older macOS versions, but should be working fine on macOS 10.13.

It shouldn’t, please show an example where they were showing up.

mark

Just realized my tv box is running 10.7.5! :blush:

Guess i will have to launch it from the terminal then. Strange that works from the terminal, but not when double clicking on the application

from the trace file:
“uri”: [“https://api.indexer1.com/rss?t=-2&dl=1&i=48092&r=the_indexer1_api_key&del=1”],

“uri”: [“https://www.indexer2.com/rss?tvinfo=11138&airdate=50&dl=1&i=15737&r=the_indexer2_api_key”],

“uri”: [“https://www.indexer2.com/rss?t=-2&dl=1&i=15737&r=the_indexer2_api_key&del=1”]

obviously, i replace the key with the_indexer_api_key :wink:

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.