No, it is not illegal, but it is still not advisable if not applied very carefully.
The highest German civil court, the Bundesgerichtshof, has defined the rules to §132a, at
March 15th, 2011 (4 StR 40/11):
Allerdings ist der Tatbestand des § 132a StGB in beiden Tatvarianten nur erfüllt, wenn es sich bei der jeweiligen Uniform bzw. dem Amtsabzeichen um solche handelt, die auf Grund öffentlichrechtlicher Bestimmungen eingeführt sind1. Amtsabzeichen werden zudem nur dann von der Strafvorschrift erfasst, wenn sie, ohne Bestandteil der Amtskleidung zu sein, an vorschriftsmäßigen Uniformen angebracht sind und den Träger als Inhaber eines bestimmten Amtes kennzeichnen.
The violation of the §132a is fulfilled if the given uniform or signs are defined by public designations. Further signs only violate the law if they are used on the correct uniform and designate the wearer as a holder of certain rights.
Still good to remember, just in case you meet some overeager members of the police. I think you do not intend to wear Nazi symbols, so I won't go into detail here.
But it is still not advisable because military gear in cities (if it is not inconspicuous enough) gives you a bad image because it is too much associated with Nazis or thugs. This can be only countered with antagonistic signals (e.g. wearing gothic or punk style, long hair etc.). Outside the cities it is accepted more easily, but you may still get wary looks.
EDIT: To demonstrate what I mean with "overeager", the highest German court needed to decide in all earnest twice that crossed-out swastikas as symbol of antifaschism are NOT forbidden symbols. Sigh...