loadCertificateFromFile

Convenience method to load a X.509 certificate from a File.

Return

A X509Certificate instance if the certificate is loaded.

Parameters

file

File containing certificate in PKCS#7 format.

Throws

If loading failed or certificate isn't of X.509 type.