code: func GetKeyType(ctx context.Context, value string) certcrypto.KeyType {
  	logger := log.FromContext(ctx)
  
  	switch value {
  	case "EC256":
  		return certcrypto.EC256
  	case "EC384":
  		return certcrypto.EC384
  	case "RSA2048":
  		return certcrypto.RSA2048
  	case "RSA4096":
  		return certcrypto.RSA4096
  	case "RSA8192":
  		return certcrypto.RSA8192
  	case "":
  		logger.Infof("The key type is empty. Use default key type %v.", certcrypto.RSA4096)
  		return certcrypto.RSA4096
  	default:
  		logger.Infof("Unable to determine the key type value %q: falling back on %v.", value, certcrypto.RSA4096)
  		return certcrypto.RSA4096
  	}
  }
docs: // GetKeyType used to determine which algo to used