Skip to content

fix error handling in Set-TNCertificate #95

Description

@potatoqualitee

[7s] C:/github/ansible❯ Set-TNCertificate @certparams
Set-SFTPItem : File already exists on remote host.
At line:198 char:29

  • ... $null = Set-SFTPItem -Destination /tmp -Path $CaCertPath
  •                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (SSH.SftpSession:SftpSession) [Set-SFTPItem], SftpPermissionDeniedException
    • FullyQualifiedErrorId : File already exists on remote host,SSH.SetSftpItem

WARNING: [07:58:02][Invoke-SecureShellCommand] Command ' /opt/sc/support/bin/php /opt/sc/src/tools/installCA.php /tmp/custom_CA.inc' failed with exit status
106

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions