Added a way to return a certificate chain

Reads all the certificates, in PEM format, from the configured directory and returns the correct certificate chain on SSL requests