fix support for chained certificates
add mini documentation
Merge branch 'cert_chains'