Hi Marcus
In addition to what the others have mentioned here, I'd definitely recommend that you have XPI Inspector in your system. It comes in very handy to troubleshoot such issues as yours as there are more details in the logs.
Michal's PI tips: XPI inspector - help OSS and yourself
For handshake issues, you can refer to my blog below on using XPI inspector to troubleshoot it.
Using XPI Inspector to troubleshoot HTTP SSL connections
Rgds
Eng Swee