[prev in list] [next in list] [prev in thread] [next in thread] 

List:       btcd-commits
Subject:    [btcsuite/btcutil] 9ffb1e: Add Common Name to certificate.
From:       Josh Rickmar <jrick () conformal ! com>
Date:       2015-06-15 20:21:31
Message-ID: 557f33cbae5c0_2b853f82b77e12a04475 () hookshot-fe1-cp1-prd ! iad ! github ! net ! mail
[Download RAW message or body]


  Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcutil
  Commit: 9ffb1ecd80cfeccecdb4f0c82855c5abdd60e1a2
      https://github.com/btcsuite/btcutil/commit/9ffb1ecd80cfeccecdb4f0c82855c5abdd60e1a2
  Author: Josh Rickmar <jrick@conformal.com>
  Date:   2015-06-15 (Mon, 15 Jun 2015)

  Changed paths:
    M certgen.go
    M certgen_test.go

  Log Message:
  -----------
  Add Common Name to certificate.

Some applications fail to parse the certificate if the CN is not set,
even if they (correctly) check SANs before the CN when validating a
hostname.  Even though the CN should be ignored if a matching SAN
hostname was found, we can prevent the parse from failing by also
including the hostname as the CN.

Additionally, switch from maps to slices to prevent DNS names and IP
addresses from being reordered when added to the certificate template.




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic