From c820d9c847871a5466c72fb45a333660a8c81f65 Mon Sep 17 00:00:00 2001 From: sspans-sbp <84081351+sspans-sbp@users.noreply.github.com> Date: Wed, 12 Jun 2024 14:04:12 +0200 Subject: [PATCH] Enforce pkcs1 for ec2 keys (#161) Enforce pkcs1 for keys The driver code expects an pkcs1 key for fetching the windows password. Make sure we generate the correct key type. --- .../{{cookiecutter.scenario_name}}/create.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/molecule_plugins/ec2/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/create.yml b/src/molecule_plugins/ec2/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/create.yml index df3e4715..6ac0d42b 100644 --- a/src/molecule_plugins/ec2/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/create.yml +++ b/src/molecule_plugins/ec2/cookiecutter/{{cookiecutter.molecule_directory}}/{{cookiecutter.scenario_name}}/create.yml @@ -128,6 +128,8 @@ type: rsa size: 2048 regenerate: never + backend: cryptography + private_key_format: pkcs1 loop: "{{ platforms }}" loop_control: label: "{{ item.name }}"