add check on cert/proxy lenght
Merge pull request #4682 from spigad/master

check proxy valdity length