I'm trying to send my GPG public key to our LDAP server, but I'm hitting a wall. My LDAP server only allows LDAP with Start_TLS over port 389, or LDAPS on port 636. I've got the following lines in my gpg.conf file in my .gnupg directory:
keyserver ldap://<fqdn of server> keyserver-options debug keyserver-options binddn="cn=admin,dc=com" keyserver-options bindpw=<admin password> keyserver-options ca-cert-file <path to servers ssl cert> keyserver-options tls=try keyserver-options verbose keyserver-options no-check-cert
However, when I try to send my key using
gpg --send-keys <key id> I get the following errors:
res_errno: 13, res_error: <TLS confidentiality required>, res_matched: <> ldap_free_request (origid 2, msgid 2) ldap_parse_result ldap_err2string gpgkeys: unable to retrieve LDAP base: Confidentiality required gpg: keyserver internal error gpg: keyserver send failed: Keyserver error
There's a lot more output since I'm running it in debug and verbose, but these seems like the only relevant part. I can post the rest if needed.