Fixed security handling in case of http proxy. Added strict user check mode for certificates checking.