mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-07-01 13:21:12 +02:00
added password parameter for using encrypted keys
Added password parameter for using encrypted keys. Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
This commit is contained in:
9
README
9
README
@ -1,8 +1,17 @@
|
||||
|
||||
1. Generate private key
|
||||
|
||||
# plain key
|
||||
openssl genrsa -out privkey_evm.pem 1024
|
||||
|
||||
# encrypted key
|
||||
openssl genrsa -des3 -out privkey_evm.pem 1024
|
||||
|
||||
# set password for the key
|
||||
openssl rsa -in /etc/keys/privkey_evm.pem -out privkey_evm_enc.pem -des3
|
||||
or
|
||||
openssl pkcs8 -topk8 -in /etc/keys/privkey_evm.pem -out privkey_evm_enc.pem
|
||||
|
||||
2. Generate public key
|
||||
|
||||
openssl rsa -pubout -in privkey_evm.pem -out pubkey_evm.pem
|
||||
|
Reference in New Issue
Block a user