Skip to content

Commit

Permalink
add 'finding keys' script (#2858)
Browse files Browse the repository at this point in the history
  • Loading branch information
mooreds authored Jan 25, 2024
1 parent edc2663 commit 2cd15ad
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ section: operate
subcategory: secure and monitor
---
import KeyMasterImportFormFields from 'src/content/docs/operate/secure-and-monitor/_key-master-import-form-fields.mdx';
import {RemoteCode} from '@fusionauth/astro-components';
import UpdateKeyNote from 'src/content/docs/_shared/_update-key-note.mdx';

## Overview
Expand All @@ -24,6 +25,14 @@ From this page, you can add and import keys and certificates as well as view and

Select the operation from the menu on the listing page.

### Finding Keys

If you have a large number of tenants, applications and signing keys, you may have difficulty keeping track of them. While there is a [key search API](/docs/apis/keys#search-for-keys), it can also be helpful to use the [client libraries](/docs/sdks) to retrieve these.

Here's sample code for retrieving all the keys that have been assigned to a tenant or application. You can learn more about [this community contributed script here](https://github.com/FusionAuth/fusionauth-contrib/tree/master/scripts/listkeys).

<RemoteCode url="https://raw.githubusercontent.com/FusionAuth/fusionauth-contrib/master/scripts/listkeys/Program.cs" lang="csharp" />

## Importing vs Generating

You can import keys and certificates. This is useful if you are integrating with an external system. For instance, you may be migrating from another auth system and want to import keys generated by that auth system to ensure anything signed with those keys will continue to work.
Expand Down

0 comments on commit 2cd15ad

Please sign in to comment.