Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: CGI client auth by digital certificate

by Fastolfe (Vicar)
on Sep 25, 2002 at 17:40 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://200679]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (8)
As of 2024-04-23 17:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found