从Windows使用公钥authentication连接到远程docker计算机

我试图从Windows Server 2008连接到远程Docker主机(Ubuntu 16.04),所有这些都在AWS EC2上。 需要在单个EC2实例中运行docker,所以我使用了一个通用驱动程序。

我正在使用一个公共密钥文件(.pem),它适用于ssh(从putty提取ppk和从linux环境sshing),我得到:

Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates for host "xx.xx.xx.xx:2376": dial tcp xx.xx.xx.xx:2376: connectex: No connection could be made because the target machine actively refused it. 

这可能吗? 我应该将pem文件转换为另一种格式吗? 我试过将证书转换为一些格式,并没有工作。