You are viewing the Apigee Management API reference documentation. For the main product docs, and to search all docs, go to https://docs.apigee.com. For cross-site search, click Search all in the search results.

Upload a JAR file to a Keystore

Resource Summary

Security

Content Type

multipart/form-data

Category

Keystores and Truststores,

postKSKey

POST

Upload a JAR file to a Keystore

After you've created a keystore in an environment, you can use this API to upload your JAR files that contain a cert and private key. For more information on keystores, see Keystores and Truststores.

This API validates the following:

  • That file size is no larger than 50KB.
  • That the certificate is of type PEM or DER.
  • That the certificate is not expired. To bypass this validation, set ignoreExpiryValidation=true.

Resource URL

https://api.enterprise.apigee.com/v1 /organizations/{org_name}/environments/{env_name}/keystores/{keystore_name}/keys

Query Parameters

Name Values Description
alias
(required)

Specifies the alias name of the JAR file used to create a virtual host.

password

Specifies the password of the private key, if it exists.

ignoreExpiryValidation

By default, this API checks to make sure the certificate hasn't expired. Set to false to validate for certificate expiration.

ignoreNewlineValidation

If false, do not throw an error when the file contains a chain with no newline between each cert. By default, Edge requires a newline between each cert in a chain.

Attachments


Name Value Description
file
(required)

Specify the JAR file containing the cert and private key.

Request Body

org_name Mention the organization name true

env_name Mention the environment name true

keystore_name Mention the keystore name true

org_name Mention the organization name true

env_name Mention the environment name true

keystore_name Mention the keystore name true

HTTP Basic

OAuth 2.0

API Key

Reset

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

Working...

Help or comments?

  • If something's not working: Ask the Apigee Community or see Apigee Support.
  • If something's wrong with the docs: Click the "Send Feedback" button.
    (Incorrect? Unclear? Broken link? Typo?)