简体   繁体   中英

How to access SSL client certificate from rack app

Actually -- question title tells almost everything. In earlier Rails (2.x) I've seen code that was accessing client certificate details via request.env hash. My rack app is receiving call with env argument, but this data is not there. How can I access it?

You should enable this on web server eg in Apache do SSLOptions +ExportCertData and/or +StdEnvVars. So you will get SSL_* vars in env.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM