The deputy shall qualify by taking the oath of the principal, to be endorsed upon and filed with the certificate of appointment, and when so qualified shall, in the absence or disability of the appointing officer, unless otherwise provided, perform all the duties pertaining to the office of the appointing officer.