Koozali.org: home of the SME Server

Peer's Certificate issuer is not recognized

Offline HACKERSOFT2011

  • **
  • 31
  • +0/-0
  • HACKERSOFT
    • Adventist International Mission School
Peer's Certificate issuer is not recognized
« on: March 14, 2016, 10:08:09 AM »
Hi!

I'm on to configuring smeserver to enable ldap authentication via php but get stucked on ldaps not connecting.

ldap protocol worked fine though but I prefer the more secure ldaps

I just need some help on which files should I touch and what other commands should I trigger to add our active directory certificate as trusted ca in smeserver box.

Thanks in advance for your replies.


Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Peer's Certificate issuer is not recognized
« Reply #1 on: March 14, 2016, 07:36:00 PM »
HACKERSOFT2011

I suggest you read the various & specific CA Cert certificate Howtos, click the Howto link at top of Forums.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Peer's Certificate issuer is not recognized
« Reply #2 on: March 14, 2016, 09:19:38 PM »
I'm on to configuring smeserver to enable ldap authentication via php ...

I don't know exactly what you mean by that. You seem to say you are writing some php code to re-configure smeserver with ldap authentication enabled. But that seems unlikely...

Quote
ldap protocol worked fine though but I prefer the more secure ldaps

OK. And I guess from the subject, somewhere you are seeing "Peer's Certificate issuer is not recognized". Presumably you have an ldaps client somewhere which doesn't like smeserver's self-signed certificate.

But then you mention AD, so perhaps you mean something else. Maybe you should explain in more detail.

Quote
I just need some help on which files should I touch and what other commands should I trigger to add our active directory certificate as trusted ca in smeserver box.

Why do you think that would help? You probably have to look through openssl and openldap documentation to work that stuff out.

Offline HACKERSOFT2011

  • **
  • 31
  • +0/-0
  • HACKERSOFT
    • Adventist International Mission School
Re: Peer's Certificate issuer is not recognized
« Reply #3 on: March 21, 2016, 10:24:45 AM »
Hi!

I got it sorted out by adding and converting the AD CA Certificate to an openldap readable format.   

Copied the .pem file to /etc/openldap/certs/ and modified ldap.conf by adding TLS_CACERT /etc/openldap/certs/ad-certificate.pem

Restarted httpd, and voila, got it working!

I will now add it to the custom template file so it can survive a reconfiguration.

Thanks anyway for your replies!



« Last Edit: March 22, 2016, 03:03:35 AM by HACKERSOFT2011 »