Method: OneLogin::KlRubySaml::Settings#get_sp_cert
- Defined in:
- lib/onelogin/kl-ruby-saml/settings.rb
#get_sp_cert ⇒ OpenSSL::X509::Certificate|nil
Returns Build the SP certificate from the settings (previously format it).
127 128 129 130 131 132 |
# File 'lib/onelogin/kl-ruby-saml/settings.rb', line 127 def get_sp_cert return nil if certificate.nil? || certificate.empty? formated_cert = OneLogin::KlRubySaml::Utils.format_cert(certificate) OpenSSL::X509::Certificate.new(formated_cert) end |