code: func NormalizePEMs(certs []byte) []byte {
  	var (
  		results  []byte
  		pemBlock *pem.Block
  	)
  	for {
  		pemBlock, certs = pem.Decode(bytes.TrimSpace(certs))
  		if pemBlock == nil {
  			return results
  		}
  		pemBlock.Headers = nil
  		results = append(results, pem.EncodeToMemory(pemBlock)...)
  	}
  }
docs: // NormalizePEMs takes a bundle of PEM-encoded certificates in a certificate bundle,
  // decodes them, removes headers, and re-encodes them to make sure that they have
  // consistent whitespace.  Note that this is intended to normalize x509 certificates
  // in PEM format, hence the stripping out of headers.