crypto/x509: return err ans1.Marshal gives an error
crypto/x509: return err ans1.Marshal gives an error

Fixes #50663

Change-Id: I18754922bf139049443c0395eaa1606049df1331
GitHub-Last-Rev: 57ff5ddfe39c211ccff60aa74a30f97ddf7015fb
GitHub-Pull-Request: golang/go#50667
Reviewed-on: https://go-review.googlesource.com/c/go/+/379094
Reviewed-by: Katie Hockman <e321a8fd89c4908465ddaf8d5d0d62480efacb63@golang.org>
Trust: Katie Hockman <e321a8fd89c4908465ddaf8d5d0d62480efacb63@golang.org>
Reviewed-by: Ian Lance Taylor <87e9c6d529889242b7e184afb632328636553ab4@golang.org>

nawawi/go,golang/go,CAFxX/go,golang/go,nawawi/go,CAFxX/go,nawawi/go,golang/go,golang/go,CAFxX/go,nawawi/go,golang/go,CAFxX/go,golang/go,nawawi/go,nawawi/go,golang/go,CAFxX/go,golang/go,CAFxX/go,CAFxX/go,CAFxX/go,nawawi/go,nawawi/go