# CertManagerIssuerResource

- Module: [Aspire.Hosting.Kubernetes](/reference/api/go/aspire.hosting.kubernetes.md)
- Version: `17.0.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Represents a cert-manager `ClusterIssuer` resource in the Aspire application model.

## Remarks

At deploy time, an issuer is rendered to a `cert-manager.io/v1 ClusterIssuer`
YAML document and applied to the cluster with `kubectl apply` after the
cert-manager Helm chart is installed and its admission webhook is reachable. The
manifest is not baked into the helm chart output; it is applied directly so the
chart and its issuers can be managed and torn down independently.
Cluster-scoped issuers can be referenced by gateways and ingresses across all
namespaces, which matches the typical multi-namespace deployment pattern for
Aspire applications.
Namespace-scoped `Issuer` resources are intentionally not modeled in the initial
release. `AddIssuer` always produces a cluster-scoped
`ClusterIssuer`.

## Definition

```go
type CertManagerIssuerResource interface {
    Resource
    ResourceWithParent
}
```

## Embeds

- `Resource`
- `ResourceWithParent`

## Methods

- [WithAcmeServer](/reference/api/go/aspire.hosting.kubernetes/certmanagerissuerresource/withacmeserver.md) -- `method` -- Configures the ACME directory URL and contact email using either two strings or two parameters.
  ```go
  WithAcmeServer(serverUrl any, email any) CertManagerIssuerResource
  ```
- [WithExternalAccountBinding](/reference/api/go/aspire.hosting.kubernetes/certmanagerissuerresource/withexternalaccountbinding.md) -- `method` -- Configures External Account Binding (EAB) with a key identifier and secret HMAC key resolved at deploy time.
  ```go
  WithExternalAccountBinding(keyId ParameterResource, hmacKey ParameterResource) CertManagerIssuerResource
  ```
- [WithHttp01Solver](/reference/api/go/aspire.hosting.kubernetes/certmanagerissuerresource/withhttp01solver.md) -- `method` -- Adds an HTTP-01 ACME challenge solver to the issuer. cert-manager will satisfy the challenge by provisioning a temporary HTTP route at `/.well-known/acme-challenge/{token}` on the same hostname being validated. This requires the hostname to be publicly reachable on port 80.
  ```go
  WithHttp01Solver() CertManagerIssuerResource
  ```
