Skip to content

Commit

Permalink
update rotation script
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaskey committed Apr 27, 2019
1 parent f714b20 commit 5da51e5
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions container_files/rotateSealerKey.ps1
Original file line number Diff line number Diff line change
@@ -1,16 +1,35 @@
#this script reads the sealer key configuration from the IdP's idp.properties file and rotates the sealer key
Try {
$runthis = $env:ENABLE_SEALER_KEY_ROTATION
$ENABLE_SEALER_KEY_ROTATION = $env:ENABLE_SEALER_KEY_ROTATION
}
Catch {
$runthis = 'True'
$ENABLE_SEALER_KEY_ROTATION = 'True'
}

If ($ENABLE_SEALER_KEY_ROTATION -eq 'True') {
#assure IDP_HOME
Try {
$IDP_HOME = $env:IDP_HOME
If ($IDP_HOME = null$) {
$IDP_HOME="c:\opt\shibboleth-idp"
}
}
Catch {
$IDP_HOME="c:\opt\shibboleth-idp"
}
#assure JAVA_HOME
Try {
$JAVA_HOME = $env:JAVA_HOME
If ($JAVA_HOME = null$) {
$JAVA_HOME="c:\zulujava\zulu-8"
}
}
Catch {
$JAVA_HOME="c:\zulujava\zulu-8"
}

If ($runthis -eq 'True') {
#settings
$IDP_HOME="c:\opt\shibboleth-idp"
$IDPPROP=$IDP_HOME + "\conf\idp.properties"
$JAVA_HOME="c:\zulujava\zulu-8"
#item below is only used if you have configured additional hosts to sync your sealer to
$SYNC_CRED="domain\user"

Expand All @@ -32,7 +51,6 @@ If ($runthis -eq 'True') {
$sync_hosts = $env:COMPUTERNAME
}


#Write-Host "Keystore:" $storefile
#Write-Host "Version File:" $versionfile
#Write-Host "Store Pass:" $storepass
Expand Down

0 comments on commit 5da51e5

Please sign in to comment.