Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
63 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
========================= | ||
Self-signed Configuration | ||
========================= | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
Self signed Issuers will issue self signed certificates. | ||
|
||
This is useful when building PKI within Kubernetes, or as a means to generate a | ||
root CA for use with the :doc:`CA Issuer </reference/issuers/ca/index>` once | ||
cert-manager supports setting the ``isCA`` flag on Certificate resources | ||
(`#85`_). | ||
|
||
A self-signed Issuer contains no additional configuration fields, and can be | ||
created with a resource like so: | ||
|
||
.. code-block:: yaml | ||
apiVersion: certmanager.k8s.io/v1alpha1 | ||
kind: ClusterIssuer | ||
metadata: | ||
name: selfsigning-issuer | ||
spec: | ||
selfSigned: {} | ||
.. note:: | ||
The presence of the ``selfSigned: {}`` line is enough to indicate that this Issuer | ||
is of type 'self signed'. | ||
|
||
Once created, you should be able to Issue certificates like normal by | ||
referencing the newly created Issuer in your ``issuerRef``: | ||
|
||
.. code-block:: yaml | ||
apiVersion: certmanager.k8s.io/v1alpha1 | ||
kind: Certificate | ||
metadata: | ||
name: example-crt | ||
spec: | ||
secretName: my-selfsigned-cert | ||
dnsNames: | ||
- example.com | ||
issuerRef: | ||
name: selfsigning-issuer | ||
kind: ClusterIssuer | ||
.. _`#85`: https://github.com/jetstack/cert-manager/issues/85 |