File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 44 Created by: Cody Hosterman
55 Organization: Pure Storage, Inc.
66 Filename: Cody.PureStorage.Pure1.psd1
7- Version: 1.4.4.0
7+ Version: 1.4.4.1
88 Copyright: 2021 Pure Storage, Inc.
99 -------------------------------------------------------------------------
1010 Module Name: PureStoragePure1PowerShell
3030 RootModule = ' PureStorage.Pure1.psm1'
3131
3232 # Version number of this module; major.minor[.build[.revision]]
33- ModuleVersion = ' 1.4.4.0 '
33+ ModuleVersion = ' 1.4.4.1 '
3434
3535 # ID used to uniquely identify this module
3636 GUID = ' 65867a33-8c09-4651-8043-96c2f7ca2893'
Original file line number Diff line number Diff line change @@ -729,12 +729,9 @@ function New-PureOneJwt {
729729 $DecryptedRsaPassword = ConvertFrom-SecureString $RsaPassword - AsPlainText
730730 set-content - value $tosign - Path ./ PureOneHeader.txt - NoNewline
731731 Start-Process - FilePath ./ openssl - ArgumentList " dgst -binary -sha256 -sign $ ( $PrivateKeyFileLocation ) -passin pass:$ ( $DecryptedRsaPassword ) -out ./PureOneSignedHeader.txt ./PureOneHeader.txt"
732+ # file lock often still exists, wait for it to release.
733+ start-sleep 1
732734 $signature = openssl base64 -in ./ PureOneSignedHeader.txt
733- if ($null -eq $signature )
734- {
735- # sometimes this needs retried, honestly not sure why.
736- $signature = openssl base64 -in ./ PureOneSignedHeader.txt
737- }
738735 $signature = $signature -replace ' \+' , ' -' -replace ' /' , ' _' -replace ' ='
739736 Remove-Item - Path ./ PureOneSignedHeader.txt
740737 Remove-Item - Path ./ PureOneHeader.txt
You can’t perform that action at this time.
0 commit comments