<pre class="notranslate">What steps will reproduce the problem?

<a href="http://play.golang.org/p/wG6_Vm1cvW" rel="nofollow">http://play.golang.org/p/wG6_Vm1cvW</a>

It's useful for this to work to be able to disable a partial function implementation
while doing TDD.

What is the expected output?

program should compile

What do you see instead?

prog.go:10: function ends without a return statement

Which compiler are you using (5g, 6g, 8g, gccgo)?

6g

Which operating system are you using?

linux

Which version are you using?  (run 'go version')

tip</pre>
<p dir="auto">pkix.Name.FillFromRDNSequence ignores attributes other than the first in the RDN sets passed as argument. As demonstrated by <a href="http://play.golang.org/p/GPZdVHzZVb" rel="nofollow">http://play.golang.org/p/GPZdVHzZVb</a>, this in turn makes x509.ParseCertificate(s) fail to locate the subject serial number for certificates where it is included in  set containing the common name.</p>
<p dir="auto">The fix is simple, also demonstrated by the playground program, but I'm unsure if the example certificate is broken and that multiple attributes in one RDN set should be ignored. And even if so, a workaround might still be desirable: The example certificate is issued by the national Danish ID provider, "NemID" mandatory for digital banking and digital public services.</p>
<p dir="auto">I raised the issue on golang-nuts:</p>
<p dir="auto"><a href="https://groups.google.com/forum/#!topic/golang-nuts/1Whb4ko4zfc" rel="nofollow">https://groups.google.com/forum/#!topic/golang-nuts/1Whb4ko4zfc</a></p>
<p dir="auto">but so far I've received no replies and so this issue serves as a reminder.</p>