| bio | website | |
|---|---|---|
| location | Poland | |
| age | 27 | |
| visits | member for | 10 months |
| seen | May 11 at 15:58 | |
| stats | profile views | 0 |
|
Aug 8 |
comment |
Secure private key storage Any code showing how to create RFC 5958 key file in java? |
|
Aug 8 |
comment |
Secure private key storage @mikeazo: Yes, but not in a straightforward way, the -aes256 options refer to PEM output used when extracting private keys. To actually create PKCS12 file with AES encryption one needs to use something like this: openssl pkcs12 -export -inkey server.key -keypbe AES-128-CBC -macalg SHA256 -in server.crt -out server.p12. But I have no way to verify if it actually does this... Still, I don't think it's possible to create such a file with JCE (Java Cryptographic Extensions), maybe with Bouncy Castle low level API... |