This repository has been archived by the owner on Oct 5, 2018. It is now read-only.
forked from gwdg/rOCCI-server
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added options for OpenSSL peer verification
- Loading branch information
Boris Parak
committed
Oct 11, 2014
1 parent
1ea6f19
commit cecb937
Showing
2 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# Force SSL according to settings in Rails.application.config.rocci_server_etc_dir/ENV.yml | ||
Rails.application.config.force_ssl = (ROCCI_SERVER_CONFIG.common.force_ssl.to_s == 'true') | ||
|
||
# Disable mandatory peer verification if SSL_CERT_* vars are not available | ||
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE if ENV['SSL_CERT_FILE'].blank? && ENV['SSL_CERT_DIR'].blank? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters