Venafi / ansible-role-venafi

(END-OF-LIFE) Ansible Role that uses Venafi to streamline machine identity (certificate and key) acquisition.
Apache License 2.0
14 stars 8 forks source link

OU field displays [] when requesting certificates #16

Open jmeldrum76 opened 4 years ago

jmeldrum76 commented 4 years ago

PROBLEM SUMMARY OU field displays [] when requesting certificates.

image

STEPS TO REPRODUCE

  1. Install Ansible and vcert using the default instructions from the readme.
  2. Create Credentials.yml file Example:
user: 'myuser'
password: 'mypassword'
url: 'https://venafi_server/vedsdk/'
zone: "Demo\\APIs\\Ansible"
trust_bundle: "/home/venafilab/ansible/venafilab_trust_bundle.pem"
  1. Create Sample.yml
---
- hosts: localhost
  roles:
    - role: venafi.ansible_role_venafi
      #certificate_common_name: "{{ ansible_fqdn }}.alex-test.venafi.com"
      certificate_common_name: "testcert2.se.venafi.com"
      certificate_cert_dir: "/tmp/etc/ssl/{{ certificate_common_name }}"
  1. Run playbook ansible-playbook sample.yml

EXPECTED RESULTS I would expect an empty OU field due to no policy default

image

ACTUAL RESULTS image

ENVIRONMENT DETAILS vcert=0.6.8 Ansible=0.2.1 Python=2.7.15+ Ubuntu=18.0.4

COMMENTS/WORKAROUNDS No workaround. I really need to get this fixed. The cannot be use in production with my customer until this is resolved.

jmeldrum76 commented 4 years ago

I did test this again with a value and it appears correctly. The issue is now only with a blank OU field.