Score:0

Decrypting a Header in Apache

in flag

I am working on an application which accepts API Token. To be more secure, i want to ask the client (User or Another Application) to encrypt the API Token using their private key so that i can decrypt the same at Apache Reverse Proxy using the client's public key and forward to Tomcat.

I have some questions here:

  1. How can i decrypt a header in Apache through a public key?
  2. How do i enforce that my Apache only accepts Basic Auth or only Bearer Auth?
Score:1
ar flag

Don't.

Use TLS to ensure that the token is secure in transit. Don't bother about securing it further, as it has to be available for the client and the server. Adding client side encryption won't increase security, but is extra code to be maintained for little or no gain.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.