So to sign a driver using a test certificate, you just have to following 2 steps:
- makecert -r -pe -ss PrivateCertStore -n CN=Contoso.com(Test) ContosoTest.cer
- Signtool sign /v /s PrivateCertStore /n Contoso.com(Test) /t http://timestamp.verisign.com/scripts/timestamp.dll amd64\toaster.sys
This, and much more, can be found in the following links.
http://msdn.microsoft.com/en-us/library/windows/hardware/ff546236%28v=vs.85%29.aspx
http://msdn.microsoft.com/en-us/library/windows/hardware/ff547660%28v=vs.85%29.aspx