How can I sign my self-built kernel with my own key?

Andreas Mueller provided instructions to sign a module at Virtualbox vboxdrv kernel module not loaded. The instructions are prescriptive so they provide all the steps you need to perform. It is a high quality post.

You should be able to modify Mueller’s procedure to sign the kernel rather than a module.