Why a host that is not a Keeper cloud host rejected the transmission key.
(context)
| 404 | |
| 405 | |
| 406 | def self_managed_key_error(context): # type: (RestApiContext) -> str |
| 407 | """Why a host that is not a Keeper cloud host rejected the transmission key.""" |
| 408 | host = server_host(context.server_base) |
| 409 | key = _resolved_server_keys.get(host) |
| 410 | if key: |
| 411 | return (f'{host} rejected the server key {key.source} (key ID {key.key_id}, ' |
| 412 | f'{server_key_fingerprint(key.public_key)}). Compare this fingerprint with the one the ' |
| 413 | f'deployment shows, or set the key: server {host} --key-id <ID> --public-key <KEY>') |
| 414 | reason = _server_key_errors.get(host) or 'not found' |
| 415 | return (f'{host} is not a Keeper cloud host and does not accept Keeper\'s server keys. Its own key ' |
| 416 | f'could not be found: {reason}. ' |
| 417 | f'Set it: server {host} --key-id <ID> --public-key <KEY>') |
| 418 | |
| 419 | |
| 420 | DEFAULT_TIMEOUT = (15, 300) |
no test coverage detected