Invalid SSL certificate error

Well, the issue appears to be that you cant get the certificate imported in the first place, which then obviously wont configure the certificate properly.

You seem to have some format error. Either export the origin certificate in a different format or convert it manually on the command line to which format your tool requires.

But yes, you do get a 521, which indicates that your server simply is not reachable, thats not so much an SSL error however.