Create openVPN Certificate with python

元气小坏坏 提交于 2019-12-11 16:45:13

问题


Do you guys know a python "script" that can generate openVPN certificates ? I need this to integrate it with my django project ...

Thx.


回答1:


Do you have the needed PKI set up, i.e., have you made your own certificate authority? If so, then changing directory to easy-rsa (see the docs I just pointed to for how to find that directory in various platforms) and using Python's subprocess to run build-key for the client of interest might be simplest.




回答2:


Checkout the source code of django-x509.

Specifically the _generate method of the base x509 model.



来源:https://stackoverflow.com/questions/3692734/create-openvpn-certificate-with-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!