public static Certificate readCertificate(String type, InputStream in) {
		try {
			return getCertificateFactory(type).generateCertificate(in);
		} catch (CertificateException e) {
			throw new CryptoException(e);
		}
	}
public static Certificate readCertificate ( String type , InputStream in ) { try { return getCertificateFactory ( type ) . generateCertificate ( in ) ; } catch ( CertificateException e ) { throw new CryptoException ( e ) ; } }
读取Certification文件<br>
Certification为证书文件<br>
see: http://snowolf.iteye.com/blog/391931

@param type 类型，例如X.509
@param in {@link InputStream} 如果想从文件读取.cer文件，使用 {@link FileUtil#getInputStream(java.io.File)} 读取
@return {@link Certificate}