[go-nuts] Why do x509.CertificateRequest ExtraExtensions become attributes?

2023-02-06 Thread Mauro Monteiro
Hello all I am using go crypto libs to create x509 certificate requests (CSR) and certificates. I noticed that CSR template extra extensions become CSR template attributes in case I need to marshal / unmarshal csr templates. For instance, below is a simple code that shows this behaviour: c

[go-nuts] Re: HTTPS proxy issue using CONNECT method

2022-12-06 Thread Mauro Monteiro
Hello Graham Thanks a lot for your explanation ! I really appreciate. Mauro On Tuesday, December 6, 2022 at 7:58:01 AM UTC gbarr wrote: > Hi Mauro, > > In your curl examples the CONNECT method was used in both cases because > you forced it to with the --proxytunnel option. If you run those s

[go-nuts] Re: HTTPS proxy issue using CONNECT method

2022-12-05 Thread Mauro Monteiro
Hello Graham, Would not make more sense to deal with both cases HTTPS and HTTP in the same way? The transport could send the CONNECT method to establish the TCP tunnel and then send the request after that. Of course, if the target request is based on HTTPS, the TLS handshake would start otherwi

Re: [go-nuts] HTTPS proxy issue using CONNECT method

2022-12-04 Thread Mauro Monteiro
ALWAYS HTTPS however it should be able to relay request to HTTP or HTTPS targets. Mauro On Saturday, December 3, 2022 at 7:34:44 PM UTC se...@liao.dev wrote: > How are you setting the proxy? > > - sean > > On Sat, Dec 3, 2022, 16:46 Mauro Monteiro wrote: > >> Hell

[go-nuts] HTTPS proxy issue using CONNECT method

2022-12-03 Thread Mauro Monteiro
Hello all, I have been facing an issue when I try to create a HTTP client which needs to connect through a HTTPS proxy using the HTTP CONNEC method. I know that it can be achieved setting my own http.Transport object. However the issue seems to be in the current implementation of /net/http/tran