-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL error in installing kernel module #8
Comments
Looks like certificates are missing. I don't know the package name.
…On Tue, May 09, 2017 at 08:59:40AM -0700, sid7954 wrote:
When I try installing the kernel module using "sudo make modules_install", i
get the following SSL error. I am not sure which kernel dependencies to install
to get rid of this error.
make -C /lib/modules/uname -r/build M=pwd modules_install
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-36-generic'
INSTALL /workspace/siddhant/simple-pt/simple-pt.ko
At main.c:222:
• SSL error:02001002:system library:fopen:No such file or directory:
bss_file.c:175
• SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory
DEPMOD 4.4.0-36-generic
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-36-generic'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.*
|
Hi Andi, Thanks for replying. We thought so, but couldn't figure out the right package... We also suspect it has to do with the current kernel version. Which kernel are you using? We're on 4.4.0-36-generic . Thanks, |
Try installing ca-certificates
|
In Ubuntu 16.04.2, the kernel module needs to be validated by a public-private key pair. Another way to go about this is to disable Secure Boot from UEFI console settings. This error did not arise in previous kernel versions. More can be read from free5lot/hid-apple-patched#23 (comment) |
I don't think secure build will affect the build process. It may affect
your ability to load the module later.
|
Yes, secure build does not affecting the build, but the SSL errors I am getting are not fatal and the build proceeds nonetheless. Validating the kernel module helps me to load it successfully. |
Basically, since Ubuntu kernel 4.4.0.20 the EFI_SECURE_BOOT_SIG_ENFORCE kernel configuration is enabled which prevents loading unsigned third party kernel modules when UEFI Secure Boot is turned on. There are 3 options to get around this (as explained in the link above):
-Bogdan. |
Why did I do what you said but failed? |
I have turned off the secure boot but still can not 'make modules_install ' successfully |
hi,do you resolve this problem now? |
i have issue
|
@poseidon-j - I'm seeing the same error. Did you get this resolved? Guessing you're trying to install the 8152 driver? |
@poseidon-j @moose09876 I have the same error,too. Anything updated? |
You are missing a signing key to sign the module: Create the key like this: cd /lib/modules/$(uname -r)/build/certs
sudo tee x509.genkey > /dev/null << 'EOF'
[ req ]
default_bits = 4096
distinguished_name = req_distinguished_name
prompt = no
string_mask = utf8only
x509_extensions = myexts
[ req_distinguished_name ]
CN = Modules
[ myexts ]
basicConstraints=critical,CA:FALSE
keyUsage=digitalSignature
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid
EOF
sudo openssl req -new -nodes -utf8 -sha512 -days 36500 -batch -x509 -config x509.genkey -outform DER -out signing_key.x509 -keyout signing_key.pem
|
Solved by this mean. |
|
When I try installing the kernel module using "sudo make modules_install", i get the following SSL error. I am not sure which kernel dependencies to install to get rid of this error.
make -C /lib/modules/
uname -r
/build M=pwd
modules_installmake[1]: Entering directory '/usr/src/linux-headers-4.4.0-36-generic'
INSTALL /workspace/siddhant/simple-pt/simple-pt.ko
At main.c:222:
SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory
INSTALL /workspace/siddhant/simple-pt/test-ftrace.ko
At main.c:222:
SSL error:02001002:system library:fopen:No such file or directory: bss_file.c:175
SSL error:2006D080:BIO routines:BIO_new_file:no such file: bss_file.c:178
sign-file: certs/signing_key.pem: No such file or directory
DEPMOD 4.4.0-36-generic
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-36-generic'
The text was updated successfully, but these errors were encountered: