LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-29-2020, 01:43 AM   #1
shams
Member
 
Registered: Jan 2004
Posts: 535

Rep: Reputation: 30
osslsigncode error:crypto/asn1/tasn_dec.c:309:Type=PKCS8_PRIV_KEY_INFO


I created the keys for signing efi binaries according to this article https://www.rodsbooks.com/efi-bootlo...olling-sb.html,then replaced my laptop UEFI keys with this ones, now want to sign the the vmlinu-linux and refind_x64.efi with osslsigncode but get error:
Code:
osslsigncode -certs DB.crt -key DB.key -h sha256 -in /boot/vmlinuz-linux -out /boot/vmlinuz-linux
Unrecognized file type - file is too short: /boot/vmlinuz-linux
139929488988032:error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag:crypto/asn1/tasn_dec.c:1149:
139929488988032:error:0D08303A:asn1 encoding routines:asn1_template_noexp_d2i:nested asn1 error:crypto/asn1/tasn_dec.c:572:
139929488988032:error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag:crypto/asn1/tasn_dec.c:1149:
139929488988032:error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error:crypto/asn1/tasn_dec.c:309:Type=RSAPrivateKey
139929488988032:error:04093004:rsa routines:old_rsa_priv_decode:RSA lib:crypto/rsa/rsa_ameth.c:142:
139929488988032:error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag:crypto/asn1/tasn_dec.c:1149:
139929488988032:error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error:crypto/asn1/tasn_dec.c:309:Type=PKCS8_PRIV_KEY_INFO

Failed
I tried to sign with the sbsign but secure boot reject to boot.
 
Old 12-29-2020, 03:32 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,849

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
did you check that file?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
insmod: error inserting '../../../kernel/crypto/twofish_common.ko': -1 Invalid module format kalai_karthick Linux - General 2 02-10-2017 12:12 PM
Crypto Diva FM opensuse error archer SUSE / openSUSE 1 11-29-2008 08:08 PM
Crypto Diva FM opensuse error archer Linux - Hardware 1 11-01-2008 04:17 AM
error: array type has incomplete element type nasim751 Linux - Software 1 04-14-2008 09:02 PM
ipw crypto error on kernel compile The SMU Linux - Laptop and Netbook 2 03-15-2005 12:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration