Merge pull request #2 from finnlabs/feature/use_system_ssl_certs

Use OpenSSL's default CA certificate store (often provided by the OS)
pull/6827/head
Martin Linkhorst 11 years ago
commit 4ba6849de4
  1. 6
      README.md
  2. 6
      lib/open_project/openid_connect/engine.rb

@ -93,6 +93,12 @@ Replace `PROVIDER_NAME` with the key you used for the provider in the settings h
https://openproject.example.org/auth/google/callback
## Provider SSL certificate validation
This plugin uses OpenSSL's default certificate store (on Linux you can ususally find it in `/etc/ssl/certs`).
If you want to use a different list of CAs for validating provider SSL certificates, you can set the environment variable `SSL_CERT_DIR` to another path containing CA certificates. Note that this environment variable is an OpenSSL feature, so it changes the CA list for all libraries using OpenSSL that don't explicitly specify another path.
## Credits
This plugin uses some of Neil Hainsworth' [Free Social Icons](http://www.neilorangepeel.com/free-social-icons/).

@ -29,6 +29,12 @@ module OpenProject::OpenIDConnect
require file.gsub("^.*lib/", "").gsub(".rb", "")
end
# Use OpenSSL default certificate store instead of HTTPClient's.
# It's outdated and it's unclear how it's managed.
OpenIDConnect.http_config do |config|
config.ssl_config.set_default_paths
end
OmniAuth::OpenIDConnect::Provider.load_generic_providers
app.config.middleware.use OmniAuth::Builder do

Loading…
Cancel
Save