Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS / Powershell Core support? #12

Open
planetscripton opened this issue Jun 18, 2019 · 1 comment
Open

MacOS / Powershell Core support? #12

planetscripton opened this issue Jun 18, 2019 · 1 comment

Comments

@planetscripton
Copy link

Does this module support PowerShell Core? It doesn't appear to be working for me on PowerShell 6.2.1 on MacOS.

@Wasapl
Copy link

Wasapl commented Sep 26, 2019

Does not work for me on Powershell 6.2.2 on MacOS also.
Here is trace:

Add-SessionTrustedCertificate -FilePath ./myca.crt -Domain mydomain.com
Exception calling "Import" with "1" argument(s): "X509Certificate is immutable on this platform. Use the equivalent constructor instead."
At /Users/wasa/.local/share/powershell/Modules/TunableSSLValidator/1.1.0/TunableSSLValidator.psm1:128 char:21
+                     $Certificate.import( (Convert-Path $FilePath) )
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : PlatformNotSupportedException

Exception calling "GetCertHashString" with "0" argument(s): "m_safeCertContext is an invalid handle."
At /Users/wasa/.local/share/powershell/Modules/TunableSSLValidator/1.1.0/TunableSSLValidator.psm1:134 char:17
+                 $Hash = $Certificate.GetCertHashString()
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : CryptographicException

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants