Allow connection with a private key as a string.