mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Raise an exception if the certificate chain is not returned from the CA
This commit is contained in:
@@ -965,6 +965,22 @@ class Base64DecodeError(ExecutionError):
|
||||
errno = 4015
|
||||
format = _('Base64 decoding failed: %(reason)s')
|
||||
|
||||
class RemoteRetrieveError(ExecutionError):
|
||||
"""
|
||||
**4016** Raised when retrieving data from a remote server fails
|
||||
|
||||
For example:
|
||||
|
||||
>>> raise RemoteRetrieveError(reason="Error: Failed to get certificate chain.")
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
RemoteRetrieveError: Error: Failed to get certificate chain.
|
||||
|
||||
"""
|
||||
|
||||
errno = 4016
|
||||
format = _('%(reason)s')
|
||||
|
||||
class BuiltinError(ExecutionError):
|
||||
"""
|
||||
**4100** Base class for builtin execution errors (*4100 - 4199*).
|
||||
|
||||
Reference in New Issue
Block a user