This repository was archived by the owner on Nov 24, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 356
TP Delivery Service Generate SSL update, new letsencrypt generate and renew API endpoints #3534
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
fedfe43
TP Delivery Service Generate SSL update, new letsencrypt generate and…
mattjackson220 092f89a
Added API for dns challenges and setup DNS Challenge calls to LE
mattjackson220 e587208
DNS Challenge update
mattjackson220 fe9c1d5
Traffic Router updated to watch for new DNS Challenge TXT Records and…
mattjackson220 19a1acf
updated for TXT record clean up
mattjackson220 7a434b7
added email field for LE configuration, updated renewal functionality…
mattjackson220 1ab6ac9
added autorenewal functionality
mattjackson220 aa112aa
Autorenewal and documentation
mattjackson220 32c5a8b
Made CSR not required for LE certs, fixed cert encoding
mattjackson220 86d0b94
autorenew, formatted email, documentation, async workflow and logs to…
mattjackson220 1858216
minor updates and SMTP code relocation
mattjackson220 7a81730
minor update so certs created before this update show in the UI as ha…
mattjackson220 59158c3
merge with other SMTP config
mattjackson220 3ccf4c4
updates per comments
mattjackson220 8a89f59
updates per comments
mattjackson220 3927087
Updates per comments
mattjackson220 5617856
Vendored in lego dependency
mattjackson220 9028aa8
update for minor fix
mattjackson220 75f2cb6
License update
mattjackson220 8e7adfa
updated for 1.5 and per comments
mattjackson220 55eeaf7
updated TR to use api/1.5 for LE records
mattjackson220 464a708
minor updates for 1.5
mattjackson220 58da5fe
fix for autorenew
mattjackson220 0a12bc3
updates per comments
mattjackson220 8a405a9
updated autorenewal to be async
mattjackson220 1275bcf
updates per comments
mattjackson220 822c0f4
updates per comments
mattjackson220 cff25f6
updated LE for 2.0
mattjackson220 41752f9
updates per comments
mattjackson220 3e7f5c8
fixed unit tests
mattjackson220 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
64 changes: 64 additions & 0 deletions
64
docs/source/api/deliveryservices_sslkeys_generate_letsencrypt.rst
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| .. | ||
| .. | ||
| .. Licensed under the Apache License, Version 2.0 (the "License"); | ||
| .. you may not use this file except in compliance with the License. | ||
| .. You may obtain a copy of the License at | ||
| .. | ||
| .. http://www.apache.org/licenses/LICENSE-2.0 | ||
| .. | ||
| .. Unless required by applicable law or agreed to in writing, software | ||
| .. distributed under the License is distributed on an "AS IS" BASIS, | ||
| .. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| .. See the License for the specific language governing permissions and | ||
| .. limitations under the License. | ||
| .. | ||
|
|
||
| .. _to-api-deliveryservices-sslkeys-generate-letsencrypt: | ||
|
|
||
| ************************************************* | ||
| ``deliveryservices/sslkeys/generate/letsencrypt`` | ||
| ************************************************* | ||
|
|
||
|
ocket8888 marked this conversation as resolved.
Outdated
|
||
| .. versionadded:: 1.5 | ||
|
|
||
| ``POST`` | ||
| ======== | ||
| Generates an SSL certificate and private key using Let's Encrypt for a :term:`Delivery Service` | ||
|
|
||
| :Auth. Required: Yes | ||
| :Roles Required: "admin" or "operations" | ||
| :Response Type: Object (string) | ||
|
|
||
| Request Structure | ||
| ----------------- | ||
| :key: The :ref:`ds-xmlid` of the :term:`Delivery Service` for which keys will be generated | ||
| :version: An integer that defines the "version" of the key - which may be thought of as the sequential generation; that is, the higher the number the more recent the key | ||
| :hostname: The desired hostname of the :term:`Delivery Service` | ||
|
|
||
| .. note:: In most cases, this must be the same as the :ref:`ds-example-urls`. | ||
|
|
||
| :cdn: The name of the CDN of the :term:`Delivery Service` for which the certs will be generated | ||
|
|
||
| .. code-block:: http | ||
| :caption: Request Example | ||
|
|
||
| POST /api/1.5/deliveryservices/sslkeys/generate/letsencrypt HTTP/1.1 | ||
| Content-Type: application/json | ||
|
|
||
| { | ||
| "key": "ds-01", | ||
| "version": "3", | ||
| "hostname": "tr.ds-01.ott.kabletown.com", | ||
| "cdn":"test-cdn" | ||
| } | ||
|
|
||
|
|
||
| Response Structure | ||
| ------------------ | ||
| .. code-block:: json | ||
| :caption: Response Example | ||
|
|
||
| { "alerts": [{ | ||
| "level": "success", | ||
| "text": "Beginning async call to Let's Encrypt for ds-01. This may take a few minutes." | ||
| }]} | ||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.