Skip to content
Snippets Groups Projects
Commit 0abd3fef authored by Adam Lewenberg's avatar Adam Lewenberg
Browse files

more

parent 59a5fcdb
No related branches found
No related tags found
No related merge requests found
......@@ -55,6 +55,20 @@ class shibb_idp3::apache2(
keyname => "ssl-key/${apache_pool_fqdn}",
}
# Keytab used for ECP authentication on production systems
case "${shibb_idp3::env}" {
'prod': {
base::wallet { 'HTTP/idp-lb.stanford.edu':
path => '/etc/http-krb5.keytab',
owner => 'root',
group => 'www-data',
mode => '0640',
ensure => present;
}
}
}
## Apache Logs
# Rotate Apache logs
......
......@@ -20,50 +20,4 @@ class shibb_idp3::install {
}
# # Install this application's web.xml in /etc/shibboleth-idp. The
# file {
# '/etc/shibboleth-idp':
# ensure => directory;
# '/etc/shibboleth-idp/Catalina/':
# ensure => directory;
# '/etc/shibboleth-idp/Catalina/localhost':
# ensure => directory;
## SECURITY
# Shibboleth IdP signing and encryption key. This should be a
# self-signed certificate of at least 2048-bits with a distant
# expiration. Note that this key-pair is NOT the same as the key-pair
# used by the Apache server.
#
# We make a soft-link to the public and private keys to make it easier
# for Shibboleth to find them.
$cert_name = "idp-metadata${shibb_idp3::host_suffix}"
apache::cert::comodo { $cert_name:
ensure => present,
keyname => "ssl-key/idp${shibb_idp3::host_suffix}.stanford.edu/metadata",
symlink => false,
}
# Make soft-links to public and private keys. These paths should match those
# used in relying-party.xml
file { '/opt/shibboleth-idp/credentials/idp-saml.key':
ensure => link,
target => "/etc/ssl/private/${cert_name}.key",
require => [
Apache::Cert::Comodo[$cert_name],
Package['shibboleth-identity-provider'],
]
}
file { '/opt/shibboleth-idp/credentials/idp-saml.pem':
ensure => link,
target => "/etc/ssl/certs/${cert_name}.pem",
require => [
Apache::Cert::Comodo[$cert_name],
Package['shibboleth-identity-provider'],
]
}
}
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