def copy_sslcertificate_to_cpx():
transport = paramiko.Transport(DOCKER_IP, 22)
transport.connect(username='root', password='linux')
sftp = paramiko.SFTPClient.from_transport(transport)
here = os.path.dirname(os.path.realpath(__file__))
for file in ['server.crt', 'server.key', 'server2.key', 'server2.crt']:
sftp.put(os.path.join(here, 'datafiles', file), os.path.join('/nsconfig/ssl', file))
评论列表
文章目录