[root@dhcp ~]# openssl rsautl -in testfile.encrypt -out
testfile.decrypt -inkey my.key -decrypt
Enter pass phrase
for my.key:
[root@dhcp ~]# ll testfile*
-rw-r--r-- 1
root root 12 Feb 20 15:36 testfile
-rw-r--r-- 1 root root 12 Feb 20 15:43
testfile.decrypt
-rw-r--r-- 1 root root 128 Feb 20 15:41
testfile.encrypt
-rw-r--r-- 1 root root 128 Feb 20 15:40
testfile.sign
[root@dhcp ~]#
[root@dhcp ~]# cat
testfile.decrypt
abcdefghijk
[root@dhcp ~]#
阅读(409) | 评论(0) | 转发(0) |