When such oath is taken out of the United States, it may be taken before any judge or clerk of a court of record, mayor or chief magistrate of any county, city, borough or town, notary public or diplomatic, consular or commercial agent of the United States. No proof of the taking of such oath is necessary, other than the certificate of such officer.