# Connector Crypto

This Connector implementation supports various mechanism to support Encryption and Signing operations.

## Keystores

To use a Java Keystore as your location of any key material, first create a Keystore using the following commands:

```bash
> keytool -keystore ./crypto.p12 -storetype PKCS12 -genseckey -alias secret0 -keyalg aes -keysize 256
> keytool -keystore ./crypto.p12 -storetype PKCS12 -list
```

Note the JKS and secret0 password used.

Next, update the following properties in your `application.yml` file:

```yaml
jks:
  jks_filename: crypto.p12
  jks_password: password
  secret0_alias: secret0
  secret0_password: password
```

Finally, make sure the JKS file `crypto.pkcs12` is added to the runtime classpath of the Connector.

### JKS

### Google GCP

### Vault


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://connector.interledger4j.dev/security-guide/crypto.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
