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

CA-390109: Use $PROFILE path to store and read known cert list #5517

Merged
merged 2 commits into from
Mar 18, 2024

Conversation

danilo-delbusso
Copy link
Member

Before these changes, the SaveCertificates method relied on machines having a SpecialFolder.MyDocuments folder. This is true in Windows and GUI versions of some Linux distros, but it's an assumption that caused the save method to fail if the folder didn't exist.

With this commit, we're storing and reading from the path where $PROFILE is stored, which is platform agnostic from the point of view of the SDK.

@danilo-delbusso danilo-delbusso self-assigned this Mar 14, 2024
@danilo-delbusso
Copy link
Member Author

FYI I had to update GetKnownServerCertificatesFilePathVariable to check for PSObject because GetValue was returning that type instead of a simple string. There's still a fallback to ToString() but as string was failing because of this.

I checked GetDefaultXenSession and that works as expected

Before these changes, the `SaveCertificates` method relied on machines having a `SpecialFolder.MyDocuments` folder. This is true in Windows and GUI versions of some Linux distros, but it's an assumption that caused the save method to fail if the folder didn't exist.

With this commit, we're storing and reading from the path where `$PROFILE` is stored, which is platform agnostic from the point of view of the SDK.

Signed-off-by: Danilo Del Busso <[email protected]>
@psafont psafont merged commit 714d995 into xapi-project:master Mar 18, 2024
28 checks passed
@danilo-delbusso danilo-delbusso deleted the dev/ps-connect-linux branch March 19, 2024 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants