-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
If you want to create a new LDAPS certificate in Turnkey OpenLDAP you can do the following:
- From the Webmin console, navigate to Servers > LDAP Server.
- Click on the OpenLDAP Server Configuration button.
- Click on the Generate SSL Certificate button.
- The hostname defaults to openldap. Change this value to match the DNS name of the
- appliance. For example, openldap.example.com
- Complete the Country code field. Note that XX can be used as the country code for a
- self-signed internal certificate.
- Click the Create Certificate button.
- Click on the Apply Configuration button.
Unfortunately this fails because the openldap group does not have permission over the new certificate and key.
The workaround is after step 8 above to ssh to the appliance or navigate to Tools > Terminal in the Webmin web console, then give the group openldap read access to the files:
chgrp openldap /etc/ldap/tls/openldap_crt.pem
chmod g+r /etc/ldap/tls/openldap_crt.pem
chgrp openldap /etc/ldap/tls/openldap_key.pem
chmod g+r /etc/ldap/tls/openldap_key.pem
You can then proceed to step 9.
Perhaps these permissions could be changed to avoid this workaround.
JedMeister