catalyst / moodle-auth_saml2

SAML done 100% in Moodle, fast, simple, secure
https://moodle.org/plugins/auth_saml2
71 stars 133 forks source link

Certificate is not created on Windows Server #758

Open EthanLecuonaWork opened 1 year ago

EthanLecuonaWork commented 1 year ago

Good day!

So I have hosted Moodle on a Windows Server through IIS. I have PHP version 7.4.20 installed on it through PHPManager. Moodle is currently using Microsoft SQL Server for a database and is working fine.

I want to use SAML2 to achieve SSO through the use of SimpleSAMLphp which is also hosted on the same IIS.

I have installed the SAML2 plugin on my Moodle site. When I try to create a new Certificate it prompts me with a 'Success' and redirects me to but there is no *.crt file in the /data/auth/saml2 directory on the server. The page I get redirected to is "https://example.com/moodle/auth/saml2/cert.php" with a table that has two columns - key and Value. Both columns are empty. I can only see the table headings.

The path has \ and / slashes in it. "Path: C:\Moodle\Data/saml2/example.com.crt"

My Moodle config.php file has: $CFG->dataroot = 'C:/Moodle/Data';

I have OpenSSL as an extension installed for PHP.

Any suggestions as to how I can get this certificate generated?

EthanLecuonaWork commented 1 year ago

Moodle 4.1.1 is installed. Build 20230303.

Using SimpleSAMLphp 1.19.7 for it's compatible with PHP 7.4.20.

Moodle installed perfectly and had OKs for all the extensions required. Please let me know if I can provide any other information!