Viewing docs for authentik 2025.12.1
published on Thursday, Feb 5, 2026 by goauthentik
published on Thursday, Feb 5, 2026 by goauthentik
Viewing docs for authentik 2025.12.1
published on Thursday, Feb 5, 2026 by goauthentik
published on Thursday, Feb 5, 2026 by goauthentik
Get certificate-key pairs by name
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as authentik from "@pulumi/authentik";
// To get the the ID and other info about a certificate
const generated = authentik.getCertificateKeyPair({
name: "authentik Self-signed Certificate",
});
import pulumi
import pulumi_authentik as authentik
# To get the the ID and other info about a certificate
generated = authentik.get_certificate_key_pair(name="authentik Self-signed Certificate")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/authentik/v2025/authentik"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// To get the the ID and other info about a certificate
_, err := authentik.LookupCertificateKeyPair(ctx, &authentik.LookupCertificateKeyPairArgs{
Name: "authentik Self-signed Certificate",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Authentik = Pulumi.Authentik;
return await Deployment.RunAsync(() =>
{
// To get the the ID and other info about a certificate
var generated = Authentik.GetCertificateKeyPair.Invoke(new()
{
Name = "authentik Self-signed Certificate",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.authentik.AuthentikFunctions;
import com.pulumi.authentik.inputs.GetCertificateKeyPairArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// To get the the ID and other info about a certificate
final var generated = AuthentikFunctions.getCertificateKeyPair(GetCertificateKeyPairArgs.builder()
.name("authentik Self-signed Certificate")
.build());
}
}
variables:
# To get the the ID and other info about a certificate
generated:
fn::invoke:
function: authentik:getCertificateKeyPair
arguments:
name: authentik Self-signed Certificate
Using getCertificateKeyPair
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCertificateKeyPair(args: GetCertificateKeyPairArgs, opts?: InvokeOptions): Promise<GetCertificateKeyPairResult>
function getCertificateKeyPairOutput(args: GetCertificateKeyPairOutputArgs, opts?: InvokeOptions): Output<GetCertificateKeyPairResult>def get_certificate_key_pair(fetch_certificate: Optional[bool] = None,
fetch_key: Optional[bool] = None,
key_data: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCertificateKeyPairResult
def get_certificate_key_pair_output(fetch_certificate: Optional[pulumi.Input[bool]] = None,
fetch_key: Optional[pulumi.Input[bool]] = None,
key_data: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCertificateKeyPairResult]func LookupCertificateKeyPair(ctx *Context, args *LookupCertificateKeyPairArgs, opts ...InvokeOption) (*LookupCertificateKeyPairResult, error)
func LookupCertificateKeyPairOutput(ctx *Context, args *LookupCertificateKeyPairOutputArgs, opts ...InvokeOption) LookupCertificateKeyPairResultOutput> Note: This function is named LookupCertificateKeyPair in the Go SDK.
public static class GetCertificateKeyPair
{
public static Task<GetCertificateKeyPairResult> InvokeAsync(GetCertificateKeyPairArgs args, InvokeOptions? opts = null)
public static Output<GetCertificateKeyPairResult> Invoke(GetCertificateKeyPairInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCertificateKeyPairResult> getCertificateKeyPair(GetCertificateKeyPairArgs args, InvokeOptions options)
public static Output<GetCertificateKeyPairResult> getCertificateKeyPair(GetCertificateKeyPairArgs args, InvokeOptions options)
fn::invoke:
function: authentik:index/getCertificateKeyPair:getCertificateKeyPair
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Fetch
Certificate bool - If set to true, certificate data will be fetched. Defaults to
true. - Fetch
Key bool - If set to true, private key data will be fetched. Defaults to
true. - Key
Data string - Generated.
- Name string
- Fetch
Certificate bool - If set to true, certificate data will be fetched. Defaults to
true. - Fetch
Key bool - If set to true, private key data will be fetched. Defaults to
true. - Key
Data string - Generated.
- name String
- fetch
Certificate Boolean - If set to true, certificate data will be fetched. Defaults to
true. - fetch
Key Boolean - If set to true, private key data will be fetched. Defaults to
true. - key
Data String - Generated.
- name string
- fetch
Certificate boolean - If set to true, certificate data will be fetched. Defaults to
true. - fetch
Key boolean - If set to true, private key data will be fetched. Defaults to
true. - key
Data string - Generated.
- name str
- fetch_
certificate bool - If set to true, certificate data will be fetched. Defaults to
true. - fetch_
key bool - If set to true, private key data will be fetched. Defaults to
true. - key_
data str - Generated.
- name String
- fetch
Certificate Boolean - If set to true, certificate data will be fetched. Defaults to
true. - fetch
Key Boolean - If set to true, private key data will be fetched. Defaults to
true. - key
Data String - Generated.
getCertificateKeyPair Result
The following output properties are available:
- Certificate
Data string - Generated.
- Expiry string
- Generated.
- Fingerprint1 string
- SHA1-hashed certificate fingerprint Generated.
- Fingerprint256 string
- SHA256-hashed certificate fingerprint Generated.
- Id string
- Generated.
- Key
Data string - Generated.
- Name string
- Subject string
- Generated.
- Fetch
Certificate bool - If set to true, certificate data will be fetched. Defaults to
true. - Fetch
Key bool - If set to true, private key data will be fetched. Defaults to
true.
- Certificate
Data string - Generated.
- Expiry string
- Generated.
- Fingerprint1 string
- SHA1-hashed certificate fingerprint Generated.
- Fingerprint256 string
- SHA256-hashed certificate fingerprint Generated.
- Id string
- Generated.
- Key
Data string - Generated.
- Name string
- Subject string
- Generated.
- Fetch
Certificate bool - If set to true, certificate data will be fetched. Defaults to
true. - Fetch
Key bool - If set to true, private key data will be fetched. Defaults to
true.
- certificate
Data String - Generated.
- expiry String
- Generated.
- fingerprint1 String
- SHA1-hashed certificate fingerprint Generated.
- fingerprint256 String
- SHA256-hashed certificate fingerprint Generated.
- id String
- Generated.
- key
Data String - Generated.
- name String
- subject String
- Generated.
- fetch
Certificate Boolean - If set to true, certificate data will be fetched. Defaults to
true. - fetch
Key Boolean - If set to true, private key data will be fetched. Defaults to
true.
- certificate
Data string - Generated.
- expiry string
- Generated.
- fingerprint1 string
- SHA1-hashed certificate fingerprint Generated.
- fingerprint256 string
- SHA256-hashed certificate fingerprint Generated.
- id string
- Generated.
- key
Data string - Generated.
- name string
- subject string
- Generated.
- fetch
Certificate boolean - If set to true, certificate data will be fetched. Defaults to
true. - fetch
Key boolean - If set to true, private key data will be fetched. Defaults to
true.
- certificate_
data str - Generated.
- expiry str
- Generated.
- fingerprint1 str
- SHA1-hashed certificate fingerprint Generated.
- fingerprint256 str
- SHA256-hashed certificate fingerprint Generated.
- id str
- Generated.
- key_
data str - Generated.
- name str
- subject str
- Generated.
- fetch_
certificate bool - If set to true, certificate data will be fetched. Defaults to
true. - fetch_
key bool - If set to true, private key data will be fetched. Defaults to
true.
- certificate
Data String - Generated.
- expiry String
- Generated.
- fingerprint1 String
- SHA1-hashed certificate fingerprint Generated.
- fingerprint256 String
- SHA256-hashed certificate fingerprint Generated.
- id String
- Generated.
- key
Data String - Generated.
- name String
- subject String
- Generated.
- fetch
Certificate Boolean - If set to true, certificate data will be fetched. Defaults to
true. - fetch
Key Boolean - If set to true, private key data will be fetched. Defaults to
true.
Package Details
- Repository
- authentik goauthentik/terraform-provider-authentik
- License
- Notes
- This Pulumi package is based on the
authentikTerraform Provider.
Viewing docs for authentik 2025.12.1
published on Thursday, Feb 5, 2026 by goauthentik
published on Thursday, Feb 5, 2026 by goauthentik
