Closed brucellino closed 9 years ago
Looks like the cert created in /etc/openldap/certs has a subject which does not recognise the fqdn of the machine :
openssl x509 -in /etc/openldap/certs/cert.crt -noout -subject subject= /C=IT/L=Catania/O=INFN/CN=vm03
Will try to execute using this diff
- shell: openssl req -new -x509 -subj '/C={{ server_country }}/ST={{ server_state }}/L={{ server_location }}/O={{ server_organization }}/CN={{ ansible_hostname }}/' -days 3650 -key my.key -out cert.crt -extensions v3_ca chdir={{ ldap_config_path }}/certs/ creates={{ ldap_config_path }}/certs/cert.crt
+ shell: openssl req -new -x509 -subj '/C={{ server_country }}/ST={{ server_state }}/L={{ server_location }}/O={{ server_organization }}/CN={{ ansible_fqdn }}/' -days 3650 -key my.key -out cert.crt -extensions v3_ca chdir={{ ldap_config_path }}/certs/ creates={{ ldap_config_path }}/certs/cert.crt
(ie, ansible_hostname --> ansible_fqdn)
Closing this Invalid, since the state of the site has changed.
looks like the secure connection has not been enabled, or the keys and certificates have not been generated properly for the ldap machine.
I tried to connect securely on the same host, but the cert used to connect had a pkcs error.