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

openssh_keypair - Add password protected key check #64436

Merged

Commits on Dec 2, 2019

  1. openssh_keypair - Add logic to handle password protected or broken key

    * The ssh key may be created manually prior the task execution with a
      passphrase. And the task will be executed on the same key.
    * The ssh key may be broken and not usable.
    
    The module will check the private key and if the key is password
    protected or broken, it will be overridden.
    The check of the ssh key performed by retrieve the public key from the
    private key.
    
    Set the "self.force" check before the "isPrivateKeyValid" check.
    In case of any issue with the "isPrivateKeyValid" function, the user
    will be able to force the regeneration of the key with the "force: yes"
    argument.
    MaxBab committed Dec 2, 2019
    Configuration menu
    Copy the full SHA
    71662e2 View commit details
    Browse the repository at this point in the history