Add X.509 and trusted sections.

Tweak layout/style for better code formatting.
Add X.509 maven dependency. Minor X.509 text fixes.