sirjonasxx / G-Earth

Cross-platform Habbo packet manipulator
MIT License
91 stars 47 forks source link

Fix nitro ssl certificate caching issue #108

Closed UnfamiliarLegacy closed 2 years ago

UnfamiliarLegacy commented 2 years ago

Sites with the same "common name", such as all cloudflare sites sni.cloudflaressl.com that use SNI, were all given the same certificate because of caching functionality in BouncyCastleSslEngineSource.

https://github.com/ganskef/LittleProxy-mitm/blob/4238e7a2ee68e260e0caa33aac41021fdf1a7391/src/main/java/org/littleshoot/proxy/mitm/BouncyCastleSslEngineSource.java#L316-L326

This PR fixes that by disabling the cache, which is safe according the developer.