[go-nuts] Re: do you use binary-only packages?

2019-01-22 Thread Wei Tang
Well, I do think Binary-only packages are very important for some security case, such as authentication algorithm in a private enterprise。 在 2018年10月19日星期五 UTC+8上午1:16:43,Russ Cox写道: > > The go command supports "binary-only packages", in which > the compiled .a file is installed in GOROOT/pkg or

[go-nuts] x509.ParseCertificate return err

2019-07-24 Thread Wei Tang
Hi, I have a problem with x509.ParseCertificate. My code is: package main import ( "crypto/x509" "encoding/pem" "fmt" ) func main() { certPEM := ` -BEGIN CERTIFICATE- MIID7jCCAtigAwIBAgIBATALBgkqhkiG9w0BAQswHTEbMBkGA1UEAxMSSHVhd2Vp IEtleVN0b3JlICAgMB4XDTE5MDcyNDA4NTQ0NFoXDTI5MDcyNDA4NTQ0

[go-nuts] Re: x509.ParseCertificate return err

2019-07-24 Thread Wei Tang
nt of pem file".getBytes())); } catch (Exception e) { e.printStackTrace(); } } } 在 2019年7月24日星期三 UTC+8下午5:30:41,Wei Tang写道: > > Hi, I have a problem with x509.ParseCertificate. > > My code is: > package main > > import ( > "c

Re: [go-nuts] Re: x509.ParseCertificate return err

2019-07-24 Thread Wei Tang
URI:http://www.example.com/crl/test.crl > > > > On Wed, 24 Jul 2019 at 11:09, Wei Tang > > wrote: > >> But in Java, the code below can parse the pem content, is there some >> difference in x509 implemention between golang and java? >> >&