openssl enc 的坑
最近对一些数据的tar包进行加密适
使用的openssl enc 命令加密
之前一直好好的加解密都没问题
但是最近 发现老是报错
error writing output file
119G的问题 经常到117G 118G就报错
重启也没有用
然后我把他压到117G以内
终于可以完整的加密了
测试解密
哦完蛋,又是这个错误
百度不到这个问题
谷歌只有这个结果
It's openssls incorrect handling of SIGPIPE. head and also dd will close the pipe when they have recieved their 5 MB. This produces an EPIPE error on the write() system call when the openssl process tries to write to the pipe:
EPIPE fd is connected to a pipe or socket whose reading end is closed. When this
happens the writing process will also receive a SIGPIPE signal.
openssl then died due to a signal rather than exiting normally. You can check that in your example using:
$ openssl enc -aes-256-ctr -pass pass:password -nosalt < /dev/zero | head -c 5M >file
error writing output file
$ echo ${PIPESTATUS[@]}
1 0
The $PIPESTATUS array contains the exit values of the processes within the pipes. You see the openssl process exited with exit code 1.
不太接这个意思
大意是信号提前杀死了openssl
关闭了管道
但是还是没法解决我的问题啊
有同样这个问题的吗???