Match new core CertificateFactory

Signed-off-by: Dominik Schadow <dominikschadow@googlemail.com>