While it may be more difficult, you certainly can in-house your DDoS protection without having to give your private keys to a third party -- especially if you can quickly scale-up frontend web proxies (eg in a public or private cloud).
One example solution for how to provide your backend webservers DDoS protection without handing your https private keys to a third party is the solution that's used by many anonymous Onion Service providers: EndGame.
Many security-critical websites that are hosted on Onion Services are too risk-averse to give a third party their private keys. While this is less of an issue for the most popular website on the darknet (Facebook), it should be avoided for Secure Drop endpoints from organizations like the BBC, NYT, ProPublica, etc.
EndGame is an on-prem DDoS mitigation tech developed for Onion Services that was released on GitHub in May 2020 by Onion Ltd. It uses nginx frontend proxies ("fronts") to put new website visitors in queues and require them to solve a CAPTCHA (generated with python).
After waiting some seconds, the user is presented with a CAPTCHA from one of the fronts. If the user solves the CAPTCHA correctly, then their session is forwarded to the actual Onion Service backend.
If the CAPTCHA works, then the DDoS will be mitigated against the backend, and the Onion Service administrator only needs to scale-up their fronts. EndGame's README recommends at least 3 fronts.
At the time of writing, EndGame is what's used in many popular anonymous Onion Services, such as the Elude Tech Collective and the Dread Forums.
EndGame's README says that it helps mitigate DDoS attacks, but that it "isn't perfect" and suggests that Tor developers should add a POW at the introduction point to make Onion Services more DDoS resilient
EndGame isn't perfect. It can't protect against introduction cell type attacks (the Tor project will need to add POW at the introduction points to fix that). But it does provide good protection and scaling which makes it much harder to take you down overall for whatever people throw at you.
source: https://github.com/onionltd/EndGame/blob/master/README.MD
Further Reading
For more information about protecting Onion Services from DDoS attacks, see the following articles published by the Tor Project:
See also https://tor.stackexchange.com/q/1181/31208