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

support base64 string for certificate #17

Open
mouki9 opened this issue Apr 9, 2024 · 0 comments
Open

support base64 string for certificate #17

mouki9 opened this issue Apr 9, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mouki9
Copy link
Contributor

mouki9 commented Apr 9, 2024

In the readme now states that the PowerShell needs to be edited whenever using cloud agent.
The same logic can be used as in the part of the AccessToken.
Use the variable $certificateBase64 to determine what you need to do.
Possible solution could be:
if (-not[string]::IsNullOrEmpty($certificateBase64)) {
$dataset = $datasetJson.content | ConvertFrom-Json
}
elseif (-not [string]::IsNullOrEmpty($certificatePathertificatePath)) {
$datasetCorrected = [Text.Encoding]::UTF8.GetString([Text.Encoding]::GetEncoding(28591).GetBytes($datasetJson.content))
$dataset = $datasetCorrected | ConvertFrom-Json
}
else {
Throw "No certificate configured"
}

please test and verify

@JeroenBL JeroenBL added the enhancement New feature or request label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants