Public/Targets/Get-SIASSHCAPublicKey.ps1
|
function Get-SIASSHCAPublicKey { <# .SYNOPSIS Downloads the SIA SSH certificate authority public key. .DESCRIPTION Retrieves the public key SIA uses to sign short-lived SSH certificates. Deploy this key as a trusted CA on target Linux hosts. .EXAMPLE Get-SIASSHCAPublicKey Downloads the current SSH CA public key. .INPUTS None. .OUTPUTS psSIA.SSHCAPublicKey .LINK https://api-docs.cyberark.com/secure-infra-access/docs/sia-ssh-public-keys-api #> [CmdletBinding()] [OutputType('psSIA.SSHCAPublicKey')] param() Invoke-SIARequest -Method GET -Path '/api/public-keys' | ConvertFrom-SIAResponse -TypeName 'psSIA.SSHCAPublicKey' } |