I have an existing unsigned apk and I want to sign it using my debug.keystore file. Here I found a tutorial how it can be done.
jarsigner -verbose -sigalg SHA1w
You don't really want to create it with your debug key, but;
-alias androiddebugkey -keystore /the/path/debug.keystore -storepass android -keypass android