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

Invalid PEM encoded certificate #20

Open
nongilg opened this issue Sep 12, 2023 · 1 comment
Open

Invalid PEM encoded certificate #20

nongilg opened this issue Sep 12, 2023 · 1 comment

Comments

@nongilg
Copy link

nongilg commented Sep 12, 2023

Hello,

I'm trying to deploy the plugin.
I get the following error in the GLPI log.

Invalid PEM encoded certificate
[2023-09-12 12:09:16] glpiphplog.CRITICAL: *** Uncaught Exception Error: Call to a member function getUrisIgnored() on null in /var/www/html/glpi/plugins/fpsaml/setup.php at line 127
Backtrace :
src/Plugin.php:1631 plugin_post_init_fpsaml()
src/Plugin.php:257 Plugin::doHook()
inc/includes.php:86 Plugin->init()
index.php:87 include()

How should the certificates be formatted?

Regards

@nongilg
Copy link
Author

nongilg commented Sep 12, 2023

My cfg.php

/**

  • @var string absolute path to service provider certificate (local)
    */
    'spCertificate' => DIR.'/etc/ssl/certs/xxx.crt',

/**

  • @var string absolute path to service provider private key (local)
    */
    'spPrivateKey' => DIR.'/etc/ssl/private/xxx.pem',

/**

  • @var string absolute path to identity provider certificate (remote)
    */
    'idpCertificate' => DIR.'/etc/ssl/certs/xxx.crt',

/**

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