Skip to content

Commit

Permalink
Merge pull request #152 from radykal-com/self_signed_cert_timezone_fix
Browse files Browse the repository at this point in the history
Fix self-signed certificate date timezone
  • Loading branch information
jimmyca15 authored Oct 16, 2017
2 parents 6619477 + 026929b commit 647bd17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/setup/cert.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function Create-SelfSignedCertificate($_subject, $_friendlyName, $_alternativeNa
$cert.InitializeFromPrivateKey(2, $key, "")
$cert.Subject = $subjectDn
$cert.Issuer = $issuerDn
$cert.NotBefore = (get-date).AddMinutes(-10)
$cert.NotBefore = (get-date).ToUniversalTime().AddMinutes(-10)
$cert.NotAfter = $cert.NotBefore.AddYears(2)
#Use Sha256
$hashAlgorithm = New-Object -ComObject X509Enrollment.CObjectId
Expand Down

0 comments on commit 647bd17

Please sign in to comment.