简体   繁体   中英

How to generate a pem format privateKey with Java?

I hava a private key is raw byte[] type, need to be transform to a pem style .

So my question is :

How to generate a pem format with Java?

PEM format Keys are written to files in Base 64 encoding.

So, you will need to convert your bytes into that format and then save it.


Hope this helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM