AdguardTeam / gomitmproxy

Simple golang mitm proxy implementation
https://adguard.com/
GNU General Public License v3.0
273 stars 53 forks source link

Change currentSerialNumber to use unix time #5

Closed gidoBOSSftw5731 closed 3 years ago

gidoBOSSftw5731 commented 3 years ago

This prevents serial reuse errors after restarting the proxy. In theory, this could cause problems the proxy is reloaded too quickly (to be precise if the time between 2 started instances of the proxy in seconds is less than the amount of certs generated) but that seems unlikely and could be solved by moving to microseconds or nanoseconds