问题
I want know How to generate below key [AES-128-ECB] using openssl cmd.
-----BEGIN PRIVATE KEY----- Proc-Type: 4,ENCRYPTED DEK-Info: AES-128-ECB,379AB79E55059F9A gaakm48Y8qYA997fJREN4JtfVkfTdnVzaZK2 ...................................... gaakm48Y834748453273tfVkfTdnVzaZK2 .... -----END PRIVATE KEY-----
From our internal code using below we have cretaed abv key , now I have to generate same format key using openssl cmd generated RSA Key then convert to PKCS8 then done PEM_encode using AES-128-ECB Alg
Is OpenSSL cmd tool can only use DES-EDE3-CBC alg to generate the keys ?
回答1:
It is not clear how are you generating your key. Considering you are running openssl genrsa
, you can try:
openssl genrsa -aes128
来源:https://stackoverflow.com/questions/8500874/how-to-generate-pkcs8-key-with-pem-encode-using-aes-128-ecb-alg-in-openssl