Comment 2 for bug 1765905

Revision history for this message
Steve Langasek (vorlon) wrote : Re: package shim-signed 1.34.1+13-0ubuntu2 failed to install/upgrade: installed shim-signed package post-installation script subprocess returned error exit status 1

From the dpkg log:

problems making Certificate Request
140700872008128:error:0D07A097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:../crypto/asn1/a_mbstr.c:109:maxsize=64

from dmesg:

[ 19.639051] systemd[1]: Set hostname to <finisdiem-HP-Pavilion-g6-Notebook-PC>.

This definitely causes the openssl req option, -subj "/CN=`hostname -s` Secure Boot Module Signature key", to exceed 64 bytes.

We should probably just take the first 31 bytes of the hostname.