I need asymmetric encryption in java. I generate .key and .crt files with own password and .crt file by openssl that said in http://www.imacat.idv.tw/tech/sslcerts.html .
Take a look at org.bouncycastle.crypto.generators.OpenSSLPBEParametersGenerator