title: connect to socks5 proxy with IKEv2 certificate using golang 1.10.2
body: <p>I use Go 1.10.2 for my client application.</p>
  <p>I'm trying to connect to a socks5 proxy that requires username, password and IKEv2 certificate file.</p>
  <p>this is what I've got so far:</p>
  <pre><code> func socks5(proxyAdress string, url string, user string, password string) {
          auth := proxy.Auth{User: user, Password: password}
          if proxy, err := proxy.SOCKS5(&quot;tcp&quot;, proxyAdress, &amp;auth, proxy.Direct);  err != nil {
              log.Fatalf(&quot;error: %v&quot;, proxy)
          } else {
              tr := &amp;http.Transport{Dial: proxy.Dial}
  
              // Create client
              myClient := &amp;http.Client{
                  Transport: tr,
              }
  
              if resp, err2 := myClient.Get(url); err2 != nil {
                  log.Fatalf(&quot;error: %v&quot;, err2)
              } else {
                  if bodyBytes, err3 := ioutil.ReadAll(resp.Body); err3 != nil {
                      log.Fatalf(&quot;error: %v&quot;, err3)
                  } else {
                      str := string(bodyBytes)
                      log.Printf(str)
                  }
  
              }
          }
      }
  </code></pre>
  <p>when I execute this function with the proper parameters</p>
  <p>I get an error from the server that I don't have permissions to access the web page I requested. that's because I didn't specify the IKEv2 key file.</p>
  <p>so.. first.. how do I do that ?</p>
  <p>and 2nd... <code>Dial</code> is deprecated.. I'm supposed to use <code>DialContext</code> but has no idea how</p>
  <p>thanks ! :)</p>
  <h1>update</h1>
  <p>the OS that I use is MacOS High Sierra 10.13.4</p>
  <p>the problem is that for example when I execute</p>
  <pre><code>socks5(&quot;il7.nordvpn.com:1080&quot;, &quot;http://ifconfig.me/ip&quot;,&quot;MY_USER&quot;,&quot;MY_PASS&quot;)
  </code></pre>
  <p>the error that I get is</p>
  <pre><code>2018/05/15 23:34:49 error: Get http://ifconfig.me/ip: socks connect tcp ifconfig.me:80-&gt;ifconfig.me:80: EOF
  </code></pre>
  <p>I don't know where to provide the IKEv2 certificate</p>