[x509] Move X509 certificate features to own module

Currently only available for web