Fix CertificateFactoryTest API to BC

Bouncycastle removed some older APIs, so we must switch our test to the
new style.

Bug: 19268019
Change-Id: Ibc5ca731237be39b5f8fab1ca00bc9ac1c8a8af9
1 file changed