Revert "Store all certificates PEM encoded"

This reverts commit 60f8d20009e035679fa03608e2a811ca7fd7b3d4.
wip