If the private key is public, it does nothing by definition and it may as well not exist!
Just use plain text, HTTP, or whatever and stop fooling yourself.
It’s like calling an open field a “secure facility”.
The name is not the thing, the map is not the territory.
Private keys are only private if they’re not public.