Converting PEM file to PKCS8 programmatically
问题 I want to convert pem file to pk8. I can do this with openssl on terminal as ; openssl pkcs8 -topk8 -inform PEM -outform DER -in client-key.pem -out client-key.pk8 -nocrypt But I need to do this programmatically on java. Its look like there is a package for cryptography which contains openssl implementation as Bounty Castle but I couldn't figure out how can do this converting process. Is there a way for doing that ? 回答1: The test code of Bouncy Castle contains an example of how to read an RSA