开发者

How to read pcks#7 personal digital certificates with python?

开发者 https://www.devze.com 2023-01-18 00:34 出处:网络
is it possible to read personal digital certificates with extension Pcks#7 ( http://en.wikipedia.org/wiki/X.509#Certificate_filename_extensions ) with python?

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 informa开发者_如何学运维tion about the subject is higly appreciated, thanks!

Federico


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.

0

精彩评论

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