引起的错误
tags don't match (6 vs {class:0 tag:16 length:247 isCompound:true...
相关链接
- 在线der查看: http://lapo.it/asn1js/
- https://github.com/golang/go/issues/18634#issuecomment-272527314
- https://github.com/golang/go/issues/21502#issuecomment-323400475
name_curve (默认参数)
- 私钥: openssl ecparam -genkey -name prime256v1 -param_enc named_curve -out pri.pem
- 公钥:openssl ec -in pri.pem -pubout -text
- der 查看: link
explicit
该参数存在在历史原因:早期为了实现支持任意椭圆曲线,定义了适合任意椭圆曲线的schema,后期发现真正使用的就几个著名的曲线P256, P384等。golang 出现后,大部分已经使用name_curve 方式,explicit 在golang中没有实现。目前可支持的曲线如下: https://github.com/golang/go/blob/master/src/crypto/x509/x509.go#L491。
- 私钥: openssl ecparam -genkey -name prime256v1 -param_enc explicit -out pri.pem
- 公钥: openssl ec -in pri.pem -pubout -text
- der查看: link