The APIs for Release 2 configuration are now hidden,
so remove the usage of those APIs.
Also use a trusted public certificate instead of a fake
one for testing Release 1 configuration, since it will
be verified by WifiService when adding a Release 1 configuration.
Bug: 37907977
Test: cts-tradefed run cts-dev --module CtsNetTestCases --test android.net.wifi.cts
Change-Id: Ie1056b97da1597ff1cdc979e9c2a57f19f58e0a3