Use the new X.509 cert generator API

The previous API has been deprecated within Bouncycastle for a while.
Switch to the newer one to avoid the deprecation warnings.

Test: cts-tradefed run cts -m CtsLibcoreTestCases
Change-Id: I24b1340185876f90730d362019f202431c94d4a2
1 file changed