in reply to Re^2: 500 Can't connect to login.salesforce.com:443
in thread 500 Can't connect to login.salesforce.com:443

This is heavily insecure because you for one enforce the use of a class which does no proper certificate validation and second additionally disable any remaining validation. This way you will not notice if some man in the middle will grab your login credentials.
  • Comment on Re^3: 500 Can't connect to login.salesforce.com:443

Replies are listed 'Best First'.
Re^4: 500 Can't connect to login.salesforce.com:443
by kunaltyagi (Novice) on Sep 15, 2016 at 12:22 UTC

    Hi gods....could you please explain in more detail...this solution is working perfectly for me..I am running my script in vpn network..still I do have chances of credential stolen?

        Hi Hippo...got your point..but to enforce public key cryptography could you pls suggest me something..or any other workaround to make this data extract more secure...thanks in advance.