Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: CGI client auth by digital certificate

by Fastolfe (Vicar)
on Sep 25, 2002 at 17:40 UTC ( #200679=note: print w/replies, xml ) Need Help??


in reply to CGI client auth by digital certificate

You'd generally approach this by configuring the web server to do all of the SSL client certificate validation. SSL certificate validation is a function of the SSL session. By the time your CGI script gets the request, you've already negotiated an SSL session. If you want to know the client's distinguished name, this should be available in the SSL_CLIENT_DN environment variable. You can then do whatever necessary authorization to permit or deny the user access to functions within your script. If you're wanting to permit access to the script itself, consider doing this in the web server configuration as well. Your script can then work under the assumption that if the script is being called, the user is allowed to do so.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://200679]
help
Chatterbox?
[Corion]: ambrus: Yeah, they wrote articles themselves, but I think the TeX version of the articles was sometimes produced by the secretaries
[ambrus]: Corion: no, these days like half of the times the professors write the articles in TeX (with formatting that's mostly acceptible but not usually good), and the other half of the time it's people who are already co-authors of the article that write it

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2017-09-26 10:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (293 votes). Check out past polls.

    Notices?