[PATCH v6 14/28] x509: move common functions to x509 helper