make php client SSL work