-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle bad DNS configuration while generating certificate (#537)
* Handle bad DNS configuration while generating certificate * adjust * Apply suggestions from code review Co-authored-by: Martin Hjelmare <[email protected]> --------- Co-authored-by: Martin Hjelmare <[email protected]>
- Loading branch information
1 parent
98deb38
commit 5cf13f7
Showing
5 changed files
with
371 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,6 +163,13 @@ def __init__(self): | |
self.expire_date = None | ||
self.fingerprint = None | ||
|
||
self.email = "[email protected]" | ||
|
||
@property | ||
def domains(self): | ||
"""Return all domains.""" | ||
return self.alternative_names | ||
|
||
def set_false(self): | ||
"""Set certificate as not valid.""" | ||
self.is_valid = False | ||
|
Oops, something went wrong.