Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certificate is not created on Windows Server #758

Open
EthanLecuonaWork opened this issue May 2, 2023 · 1 comment
Open

Certificate is not created on Windows Server #758

EthanLecuonaWork opened this issue May 2, 2023 · 1 comment

Comments

@EthanLecuonaWork
Copy link

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
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant