add check on cert/proxy lenght