<commit_before>- name: "Install packages"
  become: yes
  apt:
    pkg: "{{ item }}"
    state: present
    force: yes
  with_items:
    - python-pip

- name: Ensure python OpenSSL dependencies are installed
  pip:
    name: pyOpenSSL
    state: present

- name: Generate an OpenSSL private key with the default values
  openssl_privatekey:
    path: '{{ target_path }}/{{ common_name }}.pem'

- name: Generate an OpenSSL Certificate Signing Request
  openssl_csr:
    path: '{{ target_path }}/{{ common_name }}.csr'
    privatekey_path: '{{ target_path }}/{{ common_name }}.pem'
    common_name: '{{ common_name }}'

- name: Generate a Self Signed OpenSSL certificate
  openssl_certificate:
    path: '{{ target_path }}/{{ common_name }}.crt'
    privatekey_path: '{{ target_path }}/{{ common_name }}.pem'
    csr_path: '{{ target_path }}/{{ common_name }}.csr'
    provider: selfsigned<commit_msg>Generate PKCS#12 version of a Self Signed OpenSSL certificate<commit_after>- name: "Install packages"
  become: yes
  apt:
    pkg: "{{ item }}"
    state: present
    force: yes
  with_items:
    - python-pip

- name: Ensure python OpenSSL dependencies are installed
  pip:
    name: pyOpenSSL
    state: present

- name: Generate an OpenSSL private key with the default values
  openssl_privatekey:
    path: '{{ target_path }}/{{ common_name }}.key'

- name: Generate an OpenSSL Certificate Signing Request
  openssl_csr:
    path: '{{ target_path }}/{{ common_name }}.csr'
    privatekey_path: '{{ target_path }}/{{ common_name }}.key'
    common_name: '{{ common_name }}'

- name: Generate a Self Signed OpenSSL certificate
  openssl_certificate:
    path: '{{ target_path }}/{{ common_name }}.crt'
    privatekey_path: '{{ target_path }}/{{ common_name }}.key'
    csr_path: '{{ target_path }}/{{ common_name }}.csr'
    provider: selfsigned

- name: Generate PKCS#12 version of a Self Signed OpenSSL certificate
  openssl_pkcs12:
    action: export
    path: '{{ target_path }}/{{ common_name }}.p12'
    friendly_name: '{{ common_name }}'
    privatekey_path: '{{ target_path }}/{{ common_name }}.key'
    certificate_path: '{{ target_path }}/{{ common_name }}.crt'
    state: present
{'fraction_non_alphanumeric': 0.13464171611136466, 'fraction_numerical': 0.003651300775901415, 'mean_word_length': 3.653927813163482, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6034374', 'n_tokens_mistral': 728, 'n_tokens_neox': 713, 'n_words': 200}