python 生成ssl证书
2021-11-18 python 3710
# ! /usr/bin/python
# -*- coding: utf-8 -*-
import pexpect
import sys
number = len(sys.argv)
child = pexpect.spawn("openssl " + sys.argv[1])
for num in range(2, number):
child.expect('(.+):')
child.sendline(sys.argv[num])
result = child.before.decode() 很赞哦! (0)
相关文章
文章评论
-
-
-
0条评论