I think in this case both sentences are correct. But by and using are different in the sense that "by" is a prepositon and "using" a verb.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Filip_281) The e-mail is electronically signed by an invalid certificate.The first is acceptable, though it can't be literally true. A certificate cannot sign. A person signs.
2) The e-mail is electronically signed using an invalid certificate.