Answer:
You can use both. You can use "knowledge of" when you are saying that you have the knowledge of something specific. You can use "knowledge in" when you're talking about a vast area/field of something. For example, I have knowledge in the field of Psychology.