Fix incorrect attribute names in the documentation.

Fixes #5303
Fix incorrect permissions for key files.

Fixes #5300