If files that are not public keys are provided as public keys, error 500 may occur.
Nicely handle that case.