Osslsigncode抛出错误 “无法识别的文件类型: initrd.img”

osslsigncode throws error "Unrecognized file type: initrd.img"


我正在尝试签署我的bzImage和initrd安全启动.我可以使用osslsigncode对bzImage进行签名,但是当我对initrd.img进行签名时,会出现以下错误:

Unrecognized file type: initrd.img
140265667176432:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:tasn_dec.c:1220:
140265667176432:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error:tasn_dec.c:386:Type=PKCS7
140265667176432:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:707:

Failed

为什么我会失败?有没有办法可以克服这个错误?

我将从GRUB加载这些签名的内核和initrd,GRUB将被请求Rhboot shim来验证它们.


.htaccess .net .net-core 2d 3d 3d-printing abstract-syntax-tree actions-on-google actionscript-3 activemq acumatica adobe-xd aframe ag-grid air airflow ajax akka alexa algorithm alignment allure amadeus amazon-cognito amazon-deequ amazon-dynamodb amazon-ec2 amazon-redshift amazon-s3 amazon-sqs