This would add asymmetric pubkey authentication for the RPC server (while still supporting http basic authentication).
Each RPCJSON HTTP requests will be signed (URI+BODY) with a provided private key (bitcoin-cli -rpcprivatekey or custom implementation with own ec stack).
The signature will be verified over a pre-shared pubkey (-rpcpubkey in bitcoin.conf).
HTTP Base authentication will be disabled if -rpcpubkey is set.
One might think that adding better(different) authentication is useless because we don't encourage people to expose the RPC server to the public anyways. I think as long as the RPC server supports authentication, there should be a stronger authentication as then plaintextish http basic auth.
if this gets conceptual acceptance, i'll add tests and documentation