Table of Contents | ||
---|---|---|
|
...
Set 'src' to the URL of the federations metadata.
Set ‘certificates' to to filename of the federation certificate. The path are configured with the directive 'certdir’ in config.php, default cert/
Set 'exipreAfter' so that i match the metadata attribute validUntil
Set 'types' to the type of metadata needed.
...
Configure the cron module
RANDOM_KEY
Edit the file config/module_cron.php. Change the directive key to a secret value.
Code Block | ||
---|---|---|
| ||
$config = array ( 'key' => 'RANDOM_KEY', 'allowed_tags' => array('frequent'), 'debug_message' => TRUE, 'sendemail' => TRUE, ); |
Crontab
Create the file /etc/cron.d/simplesamlphp and add the following.
Set the time (*/30 * * * *) to match the metadata attribute cacheDuration
Set the hostname
Set the key to match the key from config/module_cron.php
If this is a test environment that are using the uses a snake oil certificate append add -k to curl
Code Block | ||
---|---|---|
| ||
*/30 * * * * www-data curl --silent "https://host.domain.loc/simplesaml/module.php/cron/cron.php?key=RANDOM_KEY&tag=frequent&output=xhtml" > /dev/null 2>&1 |