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

Get-GOAuthenticationService Issue #59

Open
ryan-elmer opened this issue Mar 13, 2024 · 4 comments
Open

Get-GOAuthenticationService Issue #59

ryan-elmer opened this issue Mar 13, 2024 · 4 comments

Comments

@ryan-elmer
Copy link

I'm receiving the following error from line "$null = $rsa.ImportParameters($rsaPrivate.ExportParameters($true))"

The operation couldn’t be completed. (OSStatus error -67738 - CSSM Exception: -2147415780 CSSMERR_CSP_INVALID_KEYATTR_MASK)

I have updated to UMN-Google module 2.0.2

I am experiencing the issue after updating to macOS Sonoma 14.4, it is still working on 14.3. Here is $PSVERSIONTABLE info
PSVersion : 7.4.1
PSEdition : Core
GitCommitId : 7.4.1
OS : Darwin 23.4.0 Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:06 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T8103
Platform : Unix
PSCompatibleVersions : System.Version[]
PSRemotingProtocolVersion : 2.3
SerializationVersion : 1.1.0.1
WSManStackVersion : 3.0

@kylecweeks
Copy link
Member

Hey Ryan,

Did you pass in a certificate file with filepath/password, or a CertificateObj? Did you update the certificate in MacOS, or are you just it directly from the Google project?

@ryan-elmer
Copy link
Author

ryan-elmer commented Mar 13, 2024 via email

@kylecweeks
Copy link
Member

Ah, I use openSSL to unpack and update the password on the certificate pair downloaded from the Google Project since the password is a default well known password. I wasn't sure if you were using any of the key management utilities from MacOS / XCode to modify those settings as the error referenced is specific to the MacOS KeyChain. "OSStatus error -67738 - CSSM Exception: -2147415780 CSSMERR_CSP_INVALID_KEYATTR_MASK" ->

As best I can tell the CSSM cannot decode the certificate (technically, or access denied). It may be referenced in a bad keyChain entry locally to your system, or is having parsing issues with the password used.

You know the certificate and module are working on another flavor of MacOS, and sorry I can't troubleshoot much more from here.

@ryan-elmer
Copy link
Author

ryan-elmer commented Mar 15, 2024 via email

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

No branches or pull requests

2 participants