Skip to content
Snippets Groups Projects
Commit f39e478e authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Prejmenovani metadat

parent d43dd7bf
No related branches found
No related tags found
No related merge requests found
Pipeline #97 passed
......@@ -34,11 +34,12 @@ if [ ! -f /etc/apache2/saml2/${HOST}.xml ]; then
pushd /etc/apache2/saml2
echo -e "Generating new service provider certificate.\n\n"
/usr/sbin/mellon_create_metadata https://${HOST}/mellon/metadata https://${HOST}/mellon
mv http*.xml sp.xml
mv http*.key sp.key
mv http*.cert sp.cert
popd
fi
sed -i "s/{{SP_ID}}/${HOST}/g" /etc/apache2/conf-enabled/mod_auth_mellon.conf
# Check if database is available
if [ -z "$DB_SOCK" ]; then
until nc -z -v -w30 $DB_HOST $DB_PORT
......
<Location / >
MellonEnable info
MellonEndpointPath /mellon
MellonSPPrivateKeyFile /etc/apache2/saml2/{{SP_ID}}.key
MellonSPCertFile /etc/apache2/saml2/{{SP_ID}}.cert
MellonSPMetadataFile /etc/apache2/saml2/{{SP_ID}}.xml
MellonSPPrivateKeyFile /etc/apache2/saml2/sp.key
MellonSPCertFile /etc/apache2/saml2/sp.cert
MellonSPMetadataFile /etc/apache2/saml2/sp.xml
MellonIdPMetadataFile /etc/apache2/saml2/idp.xml
</Location>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment