(a) Any person in any branch of the armed services of the United States of America may make oath to any affidavit before any commissioned officer of any branch of the services, and the certificate of the officer before whom the oath may be made shall be proof of the making of the oath.
(b) The officer shall show in his or her certificate his or her rank, the branch of service in which he or she is an officer, his or her outfit, and, if and when permissible, the place where the oath was made.