开发者

Create openVPN Certificate with python

开发者 https://www.devze.com 2023-01-16 00:07 出处:网络
Do you guys know a python \"script\" that can generate openVPN certificates ? I need this to integrate it with my django project ...

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

Thx开发者_如何学编程.


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.


Checkout the source code of django-x509.

Specifically the _generate method of the base x509 model.

0

精彩评论

暂无评论...
验证码 换一张
取 消