Change a few checks on names:
Change a few checks on names:

- Allow an email address to be the common name of a cert even if email
protection isn't in the role if any name is set to true (this allows
certificates with a common name entry of an email address but used for
other purposes; here just for CA cert signing).

- Don't check the user part of an email against the hostname regex.
Emails can contain e.g. "+" and "_" and these should be allowed even
though they're not part of a valid hostname.

Also, fix a nil pointer issue.

mgk/vault,andrewstuart/vault,jmhardison/vault,lirao/vault,mhurne/vault,rnaveiras/vault,doubledutch/vault,hashbrowncipher/vault,kenbreeman/vault,michaelansel/vault,joelthompson/vault,Aloomaio/vault,annanay25/vault,rnaveiras/vault,memory/vault,cimarron-pistoncloud/vault,careyblack/vault,mymercurialsky/vault,hashbrowncipher/vault,jmhardison/vault,hartsock/vault,hashbrowncipher/vault,chrishoffman/vault,annanay25/vault,doubledutch/vault,kenbreeman/vault,wjam/vault,hashicorp/vault,grunzwei/vault,Banno/vault,jmhardison/vault,quixoten/vault,careyblack/vault,hartsock/vault,deverton/hashicorp-vault,grunzwei/vault,hartsock/vault,kingland/vault,rnaveiras/vault,rnaveiras/vault,tallpauley/vault,doodles526/vault,careyblack/vault,kenbreeman/vault,peteryhwong/vault,grunzwei/vault,Caiyeon/vault,grunzwei/vault,sepiroth887/vault,deverton/hashicorp-vault,ryon/vault,mgk/vault,hashbrowncipher/vault,joelthompson/vault,kingland/vault,doubledutch/vault,quixoten/vault,Aloomaio/vault,MonsantoCo/vault,hashicorp/vault,Caiyeon/vault,quixoten/vault,sepiroth887/vault,jgcallero/vault,martin-ducar-gd/vault,chrishoffman/vault,lemondrank/vault,joelthompson/vault,quixoten/vault,jmhardison/vault,MonsantoCo/vault,rnaveiras/vault,LolalyLuo/vault,careyblack/vault,chris-west-travelex/vault,peteryhwong/vault,skippy/vault,kingland/vault,sepiroth887/vault,geckoboard/vault,naunga/vault,doodles526/vault,danielsomerfield/vault,jgcallero/vault,mymercurialsky/vault,kingland/vault,michaelansel/vault,geckoboard/vault,wjam/vault,andrewstuart/vault,mhurne/vault,lirao/vault,kingland/vault,andrewstuart/vault,sepiroth887/vault,Banno/vault,kenbreeman/vault,LolalyLuo/vault,joelthompson/vault,skippy/vault,jmhardison/vault,sepiroth887/vault,annanay25/vault,jam-pot/vault,mgk/vault,ryon/vault,hartsock/vault,memory/vault,andrewstuart/vault,annanay25/vault,hashbrowncipher/vault,danielsomerfield/vault,chris-west-travelex/vault,mgk/vault,tallpauley/vault,Aloomaio/vault,Aloomaio/vault,doubledutch/vault,hashicorp/vault,naunga/vault,hartsock/vault,geckoboard/vault,kenbreeman/vault,jam-pot/vault,martin-ducar-gd/vault,geckoboard/vault,hashicorp/vault,grunzwei/vault,chris-west-travelex/vault,chris-west-travelex/vault,careyblack/vault,doubledutch/vault,geckoboard/vault,chris-west-travelex/vault,lemondrank/vault,cimarron-pistoncloud/vault,hashicorp/vault,annanay25/vault,hashicorp/vault,andrewstuart/vault