Enabling SSL on Windows

Hello Chaps -

I have tried following the guide on Github to get this working but alas, it is not. I have created my own cert, converted it to pk12, then imported it into my personal store. I then took the thumbprint and removed all the spaces (even the ghost ones) and pasted that into the cert has field. I then stopped NZBDrone and started again as administrator. Still not working. Is there something that I missed? I just get page not found.

Thanks for you help!

route

Enable trace logging and check the logs after starting up, should show any errors registering the cert/enabling SSL.

I did that. Let me clear the logs and restart it. One moment.

Component	Message	Time

ProcessProvider Opening URL [http://localhost:8989] 4:09 PM
BrowserService Starting default browser. http://localhost:8989 4:09 PM
SceneMappingService Updating Scene mapping 4:09 PM
HousekeepingService Running housecleaning tasks 4:09 PM
OwinHostController Attempting to stop Nancy host 4:08 PM
NzbDroneServiceFactory Attempting to stop application. 4:08 PM
LifecycleService Shutdown requested. 4:08 PM
DbFactory Database Compressed 4:08 PM
DbFactory Vacuuming database 4:08 PM

Nothing related to SSL?

Did you enable SSL in drone, or just add the cert?

I enabled it under general.

Turn it off and on again?

check the log files, will have more details than the table

Where is that located?

Table
Files
Refresh Delete Log Files
Filename Last Write Time
nzbdrone.txt Today Download
Nzbdrone.Txt
14-3-10 16:17:58.6|Trace|EventAggregator|Publishing CommandUpdatedEvent
14-3-10 16:17:58.6|Trace|EventAggregator|CommandUpdatedEvent -> CommandModule
14-3-10 16:17:58.6|Trace|CommandExecutor|Publishing BroadcastSignalRMessage
14-3-10 16:17:58.6|Trace|CommandExecutor|BroadcastSignalRMessage -> NzbDronePersistentConnection
14-3-10 16:17:58.6|Trace|EventAggregator|Publishing CommandExecutedEvent
14-3-10 16:17:58.6|Trace|EventAggregator|CommandExecutedEvent -> TaskManager
14-3-10 16:17:58.6|Trace|EventAggregator|CommandExecutedEvent <- TaskManager
14-3-10 16:17:58.6|Trace|CommandExecutor|BroadcastSignalRMessage <- NzbDronePersistentConnection [00:00:00]
14-3-10 16:17:58.6|Trace|EventAggregator|CommandUpdatedEvent <- CommandModule
14-3-10 16:17:58.6|Trace|EventAggregator|Publishing CommandExecutedEvent
14-3-10 16:17:58.6|Trace|EventAggregator|CommandExecutedEvent -> TaskManager
14-3-10 16:17:58.6|Trace|EventAggregator|CommandExecutedEvent <- TaskManager
14-3-10 16:17:58.6|Trace|CommandExecutor|DeleteLogFilesCommand <- DeleteLogFilesService [00:00:00.0097657]
14-3-10 16:18:02.0|Trace|Scheduler|Pending Tasks: 0
14-3-10 16:18:03.0|Trace|CommandExecutor|Publishing ShutdownCommand
14-3-10 16:18:03.0|Trace|CommandExecutor|ShutdownCommand -> LifecycleService
14-3-10 16:18:03.0|Info|LifecycleService|Shutdown requested.
14-3-10 16:18:03.1|Trace|EventAggregator|Publishing ApplicationShutdownRequested
14-3-10 16:18:03.1|Trace|EventAggregator|ApplicationShutdownRequested -> NzbDroneServiceFactory
14-3-10 16:18:03.1|Info|NzbDroneServiceFactory|Attempting to stop application.
14-3-10 16:18:03.3|Info|OwinHostController|Attempting to stop Nancy host
14-3-10 16:18:14.9|Info|Bootstrap|Starting NzbDrone Console. Version 2.0.0.1236
14-3-10 16:18:15.4|Info|MigrationLogger|*** Migrating data source=C:\ProgramData\zbDrone
zbdrone.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal ***
14-3-10 16:18:15.7|Info|DbFactory|Vacuuming database
14-3-10 16:18:16.0|Info|DbFactory|Database Compressed
14-3-10 16:18:16.0|Info|MigrationLogger|*** Migrating data source=C:\ProgramData\zbDrone\logs.db;cache size=-10485760;datetimekind=Utc;journal mode=Wal ***
14-3-10 16:18:16.0|Info|DbFactory|Vacuuming database
14-3-10 16:18:16.1|Info|DbFactory|Database Compressed
14-3-10 16:18:16.1|Info|Router|Application mode: Interactive
14-3-10 16:18:16.2|Info|netsh.exe|Starting netsh.exe http show sslcert ipport=0.0.0.0:9898
14-3-10 16:18:16.3|Info|netsh.exe|Starting netsh.exe http add sslcert ipport=0.0.0.0:9898 certhash=?b914115fd43cc0d506ca637138e941db36407b21 appid={C2172AF4-F9A6-4D91-BAEE-C2E4EE680613}
14-3-10 16:18:16.3|Info|netsh.exe|Starting netsh.exe http add urlacl http://:8989/ sddl=D:(A;;GX;;;S-1-1-0)
14-3-10 16:18:16.4|Info|netsh.exe|Starting netsh.exe http add urlacl https://
:9898/ sddl=D:(A;;GX;;;S-1-1-0)
14-3-10 16:18:16.5|Info|OwinHostController|Listening on the following URLs:
14-3-10 16:18:16.5|Info|OwinHostController| http://:8989/
14-3-10 16:18:16.5|Info|OwinHostController| https://
:9898/
14-3-10 16:18:16.7|Info|lambda_method|Starting NzbDrone API
14-3-10 16:18:18.9|Info|HousekeepingService|Running housecleaning tasks
14-3-10 16:18:18.9|Info|SceneMappingService|Updating Scene mapping
14-3-10 16:18:19.0|Trace|CleanupOrphanedEpisodes|Running orphaned episodes cleanup
14-3-10 16:18:19.0|Trace|CleanupOrphanedHistoryItems|Running orphaned history cleanup
14-3-10 16:18:19.0|Trace|CleanupOrphanedMetadataFiles|Running orphaned episode files cleanup
14-3-10 16:18:19.0|Trace|CleanupAdditionalNamingSpecs|Running naming spec cleanup
14-3-10 16:18:19.1|Trace|CleanupOrphanedBlacklist|Running orphaned blacklist cleanup
14-3-10 16:18:19.1|Trace|UpdateCleanTitleForSeries|Updating CleanTitle for all series
14-3-10 16:18:19.6|Info|BrowserService|Starting default browser. http://localhost:8989
14-3-10 16:18:19.9|Trace|EventAggregator|ApplicationStartedEvent <~ SetLoggingLevel
14-3-10 16:18:20.1|Info|ProcessProvider|Opening URL [http://localhost:8989]
14-3-10 16:18:20.2|Trace|CleanupOrphanedEpisodeFiles|Running orphaned episode files cleanup
14-3-10 16:18:20.2|Trace|FixFutureRunScheduledTasks|Running scheduled task last execution cleanup
14-3-10 16:18:20.2|Trace|EventAggregator|ApplicationStartedEvent <~ HousekeepingService
14-3-10 16:18:20.4|Trace|EventAggregator|ApplicationStartedEvent <~ SceneMappingService
14-3-10 16:18:21.8|Trace|HealthCheckService|Checking health
14-3-10 16:18:21.8|Trace|SabnzbdProxy|https://localhost:9090/api?mode=queue&start=0&limit=0&apikey=6931f732937f8370bbdc0c4952352330&output=json
14-3-10 16:18:21.8|Trace|SabnzbdProxy|https://localhost:9090/api?mode=queue&start=0&limit=0&apikey=6931f732937f8370bbdc0c4952352330&output=json
14-3-10 16:18:22.0|Trace|SabnzbdProxy|Response: {“queue”:{“uniconfig”:“C:\\Program Files (x86)\\SABnzbd\\interfaces\\Config\\templates”,“cache_size”:“0 B”,“active_lang”:“en”,“paused”:false,“session”:“6931f732937f8370bbdc0c4952352330”,“restart_req”:false,“power_options”:true,“slots”:[],“speed”:“0 “,“helpuri”:“http://wiki.sabnzbd.org/",“size”:"0 B”,“uptime”:“19h”,“refresh_rate”:””,“my_home”:“C:\\Users\\Brhan\\Documents”,“limit”:0,“have_quota”:false,“isverbose”:false,“start”:0,“finish”:0,“version”:“0.7.16”,“new_rel_url”:"",“my_lcldata”:“C:\\Users\\Brhan\\AppData\\Local\\sabnzbd”,“color_scheme”:“gold”,“diskspacetotal1”:“465.76”,“nt”:true,“status”:“Idle”,“last_warning”:“2014-03-10 14:23:56,349
ERROR:
Too many connections to server us-secure.newsdemon.com:563”,“have_warnings”:“20”,“cache_art”:“0”,“sizeleft”:“0 B”,“finishaction”:null,“paused_all”:false,“quota”:“0 “,“newzbin_url”:“www.newzbin2.es”,“new_release”:””,“pause_int”:“0”,“mbleft”:“0.00”,“diskspace1”:“111.61”,“scripts”:[],“categories”:["",“movies”,“other”,“tv”],“pp_pause_event”:false,“darwin”:false,“timeleft”:“0:00:00”,“mb”:“0.00”,“noofslots”:0,“eta”:“unknown”,“diskspacetotal2”:“465.76”,“nzb_quota”:"",“loadavg”:"",“cache_max”:“209715200”,“kbpersec”:“0.00”,“speedlimit”:"",“webdir”:"",“queue_details”:“0”,“left_quota”:“0 “,“diskspace2”:“111.61”}}
14-3-10 16:18:22.0|Trace|SabnzbdProxy|Response: {“queue”:{“uniconfig”:“C:\\Program Files (x86)\\SABnzbd\\interfaces\\Config\\templates”,“cache_size”:“0 B”,“active_lang”:“en”,“paused”:false,“session”:“6931f732937f8370bbdc0c4952352330”,“restart_req”:false,“power_options”:true,“slots”:[],“speed”:“0 “,“helpuri”:“http://wiki.sabnzbd.org/",“size”:"0 B”,“uptime”:“19h”,“refresh_rate”:””,“my_home”:“C:\\Users\\Brhan\\Documents”,“limit”:0,“have_quota”:false,“isverbose”:false,“start”:0,“finish”:0,“version”:“0.7.16”,“new_rel_url”:””,“my_lcldata”:“C:\\Users\\Brhan\\AppData\\Local\\sabnzbd”,“color_scheme”:“gold”,“diskspacetotal1”:“465.76”,“nt”:true,“status”:“Idle”,“last_warning”:“2014-03-10 14:23:56,349
ERROR:
Too many connections to server us-secure.newsdemon.com:563”,“have_warnings”:“20”,“cache_art”:“0”,“sizeleft”:“0 B”,“finishaction”:null,“paused_all”:false,“quota”:“0 “,“newzbin_url”:“www.newzbin2.es”,“new_release”:””,“pause_int”:“0”,“mbleft”:“0.00”,“diskspace1”:“111.61”,“scripts”:[],“categories”:["
",“movies”,“other”,“tv”],“pp_pause_event”:false,“darwin”:false,“timeleft”:“0:00:00”,“mb”:“0.00”,“noofslots”:0,“eta”:“unknown”,“diskspacetotal2”:“465.76”,“nzb_quota”:"",“loadavg”:"",“cache_max”:“209715200”,“kbpersec”:“0.00”,“speedlimit”:"",“webdir”:"",“queue_details”:“0”,“left_quota”:"0 ",“diskspace2”:“111.61”}}
14-3-10 16:18:22.0|Trace|DiskProviderBase|Deleting file: R:\complete\tv\drone_test.txt
14-3-10 16:18:22.0|Trace|DiskProviderBase|Deleting file: C:\ProgramData\zbDrone\bin\drone_test.txt
14-3-10 16:18:23.5|Trace|HealthCheckService|Checking health
14-3-10 16:18:23.5|Trace|DiskProviderBase|Deleting file: R:\complete\tv\drone_test.txt
14-3-10 16:18:23.5|Trace|DiskProviderBase|Deleting file: C:\ProgramData\zbDrone\bin\drone_test.txt
NzbDrone Ver. 2.0.0.1236

Looks like its starting https on 9898 properly, but its not loading?

Can you run: netsh.exe http show sslcert ipport=0.0.0.0:9898 at an admin command prompt?

C:\Users\X>netsh.exe http show sslcert ipport=0.0.0.0:9898

SSL Certificate bindings:

The system cannot find the file specified.

What does that mean?

What OS?

Win 7

Ahh, sorry, misread the message before, its saying the cert has not yet been registered.

Looking at: netsh.exe http add sslcert ipport=0.0.0.0:9898 certhash=?b914115fd43cc0d506ca637138e941db36407b21 appid={C2172AF4-F9A6-4D91-BAEE-C2E4EE680613} There looks to be a ghost space before the certificate hash, causing it to fail.

Try deleting that and then restarting drone as admin once again.

Let me try that.

I have checked and checked again, there does not appear to be a space when I put it in the gui. Are we sure this is it?

Doh! I got it. Somehow there was still a space in there. Even though I could not see it. Thank you so much for your help and promptness!