Legitimace vrátného, ministerstvo války