Make the PKI scripts work with /bin/sh.

Refs #6002
Fix the .bundle validation.

Refs #6002