What the "secrets of wisdom" are can be stated clearly. Alternate translation: "that he would show you that you are suffering because of your sin" (See: [[rc://en/ta/man/jit/figs-explicit]])
The word "wisdom" here is probably a metonym for a wise person, and the "two sides" are the different arguments in a dispute. When there is a disagreement, a wise person will listen to everyone before deciding what the truth is. (See: [[rc://en/ta/man/jit/figs-metonymy]])
Demanding from Job represents punishing Job. Alternate translation: "God is punishing you less than you deserve" (See: [[rc://en/ta/man/jit/figs-metaphor]])