From fc4112fd30ab3d3e80211c269b73123a135a13c1 Mon Sep 17 00:00:00 2001 From: Cody Hosterman Date: Tue, 26 Apr 2022 15:03:48 -0700 Subject: [PATCH] Fixed bug on Linux/Mac https://github.com/PureStorage-OpenConnect/PureStorage.Pure1/issues/49 --- PureStorage.Pure1.psd1 | 8 ++++---- PureStorage.Pure1.psm1 | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/PureStorage.Pure1.psd1 b/PureStorage.Pure1.psd1 index 9964772..8895a54 100644 --- a/PureStorage.Pure1.psd1 +++ b/PureStorage.Pure1.psd1 @@ -4,8 +4,8 @@ Created by: Cody Hosterman Organization: Pure Storage, Inc. Filename: Cody.PureStorage.Pure1.psd1 - Version: 1.4.4.1 - Copyright: 2021 Pure Storage, Inc. + Version: 1.4.4.2 + Copyright: 2022 Pure Storage, Inc. ------------------------------------------------------------------------- Module Name: PureStoragePure1PowerShell Disclaimer @@ -30,7 +30,7 @@ RootModule = 'PureStorage.Pure1.psm1' # Version number of this module; major.minor[.build[.revision]] - ModuleVersion = '1.4.4.1' + ModuleVersion = '1.4.4.2' # ID used to uniquely identify this module GUID = '65867a33-8c09-4651-8043-96c2f7ca2893' @@ -42,7 +42,7 @@ CompanyName = 'Pure Storage, Inc.' # Copyright statement for this module - Copyright = '(c) 2021 Pure Storage, Inc. All rights reserved.' + Copyright = '(c) 2022 Pure Storage, Inc. All rights reserved.' # Description of the functionality provided by this module Description = 'Pure Storage Pure1 REST API integration with PowerShell.' diff --git a/PureStorage.Pure1.psm1 b/PureStorage.Pure1.psm1 index 89eee25..a7f8bf0 100644 --- a/PureStorage.Pure1.psm1 +++ b/PureStorage.Pure1.psm1 @@ -395,7 +395,7 @@ function New-PureOneCertificate { { throw "The entered private key password must be more than 4 characters and less than 1023 characters." } - openssl genrsa -aes256 -passout pass:$DecryptedRsaPassword -out $keypath/PureOnePrivate.pem 2048 2>/dev/null + openssl genrsa -aes256 -passout pass:$DecryptedPassword -out $keypath/PureOnePrivate.pem 2048 2>/dev/null openssl rsa -in $keypath/PureOnePrivate.pem -outform PEM -pubout -out $keypath/PureOnePublic.pem -passin pass:$DecryptedPassword 2>/dev/null $keyPaths = [ordered]@{ PrivateKey = "$($keyPath)/PureOnePrivate.pem"