如何用python读取pcks#7个人数字证书?
是否可以读取扩展名为 Pcks#7 的个人数字证书 ( http://en.wikipedia .org/wiki/X.509#Certificate_filename_extensions )与 python? 我必须使用 Django 开发一个应用程序,通过读取用户的证书来对其用户进行身份验证。
在第一步中,我们将使用外部服务来完成此任务,但最好了解如何开发个人解决方案。
非常感谢有关该主题的任何信息,谢谢!
费德里科
is it possible to read personal digital certificates with extension Pcks#7 ( http://en.wikipedia.org/wiki/X.509#Certificate_filename_extensions ) with python?
I have to develop an application using Django that authenticate its users by reading their certificate.
In an initial step we are going to use an external services to accomplish this but it would be nice to understand how to develop a personal solution.
Any information about the subject is higly appreciated, thanks!
Federico
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您已用“django”标记了您的问题,并且提到了使用证书登录用户。很抱歉,你的问题的其余部分对我来说没有多大意义。
如果您的问题是“如何使用 SSL 证书身份验证对 Django 网站中的用户进行身份验证?”
那么我的建议是使用 apache 来处理身份验证:
http://httpd.apache.org/docs/2.0/ssl/ssl_howto .html#accesscontrol
并编写自己的自定义身份验证后端以将其与 Django 连接起来。
http://docs.djangoproject.com/en/dev/topics/ auth/#authentication-backends
我自己没有尝试过,我认为可以让 mod_ssl 在请求环境中放置一些有用的东西。
You've tagged your question with "django" and you've mentioned logging in users using certificates. Sorry to say the rest of your question doesn't make much sense to me.
If your question is "How to I authenticate users in my Django website using SSL certificate authentication?"
Then my suggestion would be to use apache to handle the authentication:
http://httpd.apache.org/docs/2.0/ssl/ssl_howto.html#accesscontrol
And write yourself custom authentication backend to hook this up with Django.
http://docs.djangoproject.com/en/dev/topics/auth/#authentication-backends
Not tried it myself, I presume it's possible to get mod_ssl to place something useful in the request environment.