如何解密消息:
algorithm="urn:ietf:params:xml:ns:cpxmlsec:algorithms:transport-gost2001
档案ENC_KEY:
MIGkMCgEIIL21aL9mNsYkPGux4Ywv+0Jh1gn6AYQHgsE9lyPaNi/BARz3b+ooHgGByqFAwICHwGgYzAcBgYqhQMCAhMwEgYHKoUDAgIjAQYHKoUDAgIeAQNDAARA3Xp8QDVUYjezeCDa9zzV3Mo2xK4gxc0vJ8/5yu6Zn5bpTZTTEDty7K9XcWSQRrOQdT7hRSV1osk4EJY9yI9k0gQIaIxb+7AUBFQ=
解密:
openssl enc -d -A -base64 -in ENC_KEY -out ENC_KEY.DER
openssl smime -decrypt -engine gost -binary -noattr -inform PEM -in ENC_KEY.DER -out KEY.DER -inkey KEY.PEM
engine "gost" set.
Error reading S/MIME message
139932807476880:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:701:Expecting: PKCS7
答案 0 :(得分:1)
您已使用# generate some data
x <- rchisq(1000000,df=1)
# create histogram
x.hist <- hist(x,breaks=7,axes=FALSE)
# create new axis
# draw axis along 'y' axTicks(2) gets the values along 'x' from your plot
axis(2, at=axTicks(2), labels=paste(axTicks(2)/1000000,"mil",sep=""))
# draw axis along 'x' axTicks(1) gets the values along 'x' from your plot
axis(1, at=axTicks(1), labels=paste( axTicks(1) ," hats",sep=""))
选项告知-inform PEM
将openssl smime
解析为PEM文件。 ENC_KEY.DER
不是PEM格式;它是DER格式。该错误消息表明它无法解析PEM标头。
您必须将ENC_KEY.DER
更改为-inform PEM
。