Configure a shared key.