askew / container-certs-service-fabric

Example of how to deploy a certificate into a Windows container running in Service Fabric.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MSI auth token expiration check is wrong

gvarun22 opened this issue · comments

if ($expireson -ge [DateTime]::UtcNow) { Write-Error -Message "The MSI auth token has expired." Exit(1) }
should be changed to

if ($expireson -lt [DateTime]::UtcNow) { Write-Error -Message "The MSI auth token has expired." Exit(1) }

in file SetupSsl.ps1 since it incorrectly shows the MSI auth token as expired.