Skip to main content

public_keys

Creates, updates, deletes, gets or lists a public_keys resource.

Overview​

Namepublic_keys
TypeResource
Idokta.hook_keys.public_keys

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
algstringAlgorithm used in the key
estringRSA key value (exponent) for key binding
kidstringUnique identifier for the certificate
ktystringCryptographic algorithm family for the certificate's keypair
nstringRSA key value (modulus) for key binding
usestringAcceptable use of the certificate

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_public_keyselectkeyId, subdomainRetrieves a public key by keyId

>Note: keyId is the alias of the public key.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
keyIdstringid" of the Public Key
subdomainstring(default: my-org)

SELECT examples​

Retrieves a public key by keyId

>Note: keyId is the alias of the public key.

SELECT
alg,
e,
kid,
kty,
n,
use
FROM okta.hook_keys.public_keys
WHERE keyId = '{{ keyId }}' -- required
AND subdomain = '{{ subdomain }}' -- required
;