We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b41477 commit 0c4f846Copy full SHA for 0c4f846
src/onelogin/saml2/settings.py
@@ -558,7 +558,12 @@ def get_idp_cert(self):
558
:returns: IdP public cert
559
:rtype: string
560
"""
561
- return self.__idp.get('x509cert')
+ cert = self.__idp.get('x509cert')
562
+ cert_file_name = self.__paths['cert'] + 'idp.crt'
563
+ if not cert and exists(cert_file_name):
564
+ with open(cert_file_name) as f:
565
+ cert = f.read()
566
+ return cert or None
567
568
def get_idp_data(self):
569
0 commit comments