martian icon indicating copy to clipboard operation
martian copied to clipboard

Certificate cache TTL

Open hazcod opened this issue 4 years ago • 1 comments

Hi! Thank you for the project.

I've noticed that the generated MITM certificates are never purged from memory. So in case of a long running instance of martian, the memory usage would only increase.

I think it would be nice to be able to use the Certificate Validity (SetValidity) as a TTL on the certificate map key.

hazcod avatar May 25 '21 07:05 hazcod

This seems reasonable - I'd be happy to review a PR that adds in this behavior.

bramhaghosh avatar Sep 21 '21 18:09 bramhaghosh