SecurityУмֵ͵뽻Ϣļʽ:

DER-encoded certificate: .cer, .crt
PEM-encoded message: .pem
PKCS#12 Personal Information Exchange: .pfx, .p12
PKCS#10 Certification Request: .p10
PKCS#7 cert request response: .p7r
PKCS#7 binary message: .p7b

.cer/.crtڴ֤飬2ʽŵģ˽Կ

.pemcrt/cerAsciiʾ

pfx/p12ڴŸ֤/˽Կͨ룬2Ʒʽ
p10֤
p7rCA֤Ļظֻڵ
p7b״չʾ֤(certificate chain)ͬʱҲֵ֧֤飬˽Կ

Уҽδp12/pfxļȡԿԼ䳤:

1ȣȡpfx/p12ļҪṩ룩
2ͨ(Alias,ע⣬֤еϢͨAliasȡ)ȡҪ֤
3ٽתΪһX509֤ṹ
4ȡ֤ڵһλһ֤飩ֱӶȡ x509Certs[0]Ĵ룩X509Certificate
5X509Certificateкܶ෽tain198127ϣȡRSAԿ˽Կ䳤ȣhttp://www.matrix.org.cn/thread.shtml?topicId=43786&forumId=55&#reply̫Easyˣ


1 no such provider: BC 
Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());

