Fix name of _key source to source_key_path, add tests for private key copying
Support public_key from in-memory sources