https://gist.github.com/sbueringer/bd8cec239c44d66967cf307d808f10c4

1) 
Create a directory under /root, say /root/module-signing, 
put the three scripts below in there and make them executable: chmod u+x one-time-setup sign-modules dkms-sign-module

2)
Run one-time-setup

3) 
Reboot your computer to deploy the MOK

4)
For each module you will want to sign via DKMS, create a file /etc/dkms/<module_name>.conf with the following content:
POST_BUILD=../../../../../../root/module-signing/dkms-sign-module
