CiscoDevNet / intersight-powershell

Cisco Intersight PowerShell
Apache License 2.0
16 stars 4 forks source link

Set-IntersightConfiguration fails when using ApiKeyString Parameter Set with an ECDSA key #133

Closed vvb closed 9 months ago

vvb commented 11 months ago

Set-IntersightConfiguration: key file path does not exist. failure is seen when using a combination of ApiKeyString with ECDSA key. When using ApiKeyString the ApiKeyFile must not be mandatory.

$config = @{
    BasePath = "https://intersight.com"
    ApiKeyId = "redacted"
    ApiKeyString = "-----BEGIN EC PRIVATE KEY-----
redacted
-----END EC PRIVATE KEY-----
"
    HttpSigningHeader =  @("(request-target)", "Host", "Date", "Digest")
}

$ Set-IntersightConfiguration @config -SkipCertificateCheck
Set-IntersightConfiguration: key file path does not exist.
Ghufz commented 9 months ago

Fixed the issue with latest Intersight.PowerShell release 1.0.11.14968