code: func (c *Certificate) Type() string {
  	algo, ok := certAlgoNames[c.Key.Type()]
  	if !ok {
  		panic("unknown cert key type")
  	}
  	return algo
  }
docs: // Type returns the key name. It is part of the PublicKey interface.