public hostnames and infra cert

This commit is contained in:
Leif Johansson 2018-09-04 11:37:50 +02:00
parent c5e7105b37
commit a719316e69
2 changed files with 3 additions and 2 deletions

View file

@ -5,7 +5,7 @@ set -x
cat<<EOF
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<CoreConfiguration xmlns="http:/www.bos_bremen.de/2009/06/eID-Server-CoreConfig">
<ServerUrl>https://${CERTNAME}/eidas-middleware</ServerUrl>
<ServerUrl>https://${PUBLIC_HOSTNAME}/eidas-middleware</ServerUrl>
<sessionManagerUsesDatabase>true</sessionManagerUsesDatabase>
<sessionMaxPendingRequests>500</sessionMaxPendingRequests>
<certificateWarningMargin>200</certificateWarningMargin>

View file

@ -276,7 +276,8 @@ class eidas_de_middleware($version="106-rs",$hostname='localhost') {
'/opt/eidas-middleware/database:/opt/eidas-middleware/database',
'/dev/log:/dev/log',
'/etc/ssl:/etc/ssl'],
env => ["CERTNAME=$_hostname",
env => ["CERTNAME=${::fqdn}_infra",
"PUBLIC_HOSTNAME=$_hostname",
"POSEIDAS_ADMIN_HASHED_PASSWORD=$poseidas_admin_hashed_password",
"SPRING_DATASOURCE_PASSWORD=$spring_datasource_password",
"MIDDLEWARE_CRYPT_PIN=$middleware_crypt_pin",