Different cert names for different ports. Fixes #373

Fixes certificate handling when connecting to the same host but on different ports, directly or via ssh.