Validating certificate purpose  |  Apigee Edge  |  Apigee Docs (2024)

You're viewing Apigee Edge documentation.
Go to the Apigee X documentation.
info

This document explains how to validate a certificate’s purpose before you upload the certificate to a keystore or a truststore. The process relies on OpenSSL for validation and is applicable on any environment where OpenSSL is available.

The TLS certificates are generally issued with one or more purposes for which they can be used. Typically this is done to restrict the number of operations for which a public key contained in the certificate can be used. The purpose of the certificate is available in the following certificate extensions:

  • Key usage
  • Extended key usage

Key usage

The key usage extension defines the purpose (for example, encipherment, signature, or certificate signing) of the key contained in the certificate. If the public key is used for entity authentication, then the certificate extension should have the key usage Digital signature.

The different key usage extensions available for a TLS certificate created using the Certificate Authority (CA) process are as follows:

  • Digital signature
  • Non-repudiation
  • Key encipherment
  • Data encipherment
  • Key agreement
  • Certificate signing
  • CRL signing
  • Encipher only
  • Decipher only

For more information on these key usage extensions, see RFC5280, Key Usage.

Extended key usage

This extension indicates one or more purposes for which the certified public key may be used, in addition to or in place of the basic purposes indicated in the key usage extension. In general, this extension will appear only in end entity certificates.

Some common extended key usage extensions are as follows:

  • TLS Web server authentication
  • TLS Web client authentication
  • anyExtendedKeyUsage

An extended key can be either critical or non-critical.

  • If the extension is critical, the certificate must be used only for the indicated purpose or purposes. If the certificate is used for another purpose, it is in violation of the CA's policy.
  • If the extension is non-critical, it indicates the intended purpose or purposes of the key is informational and does not imply that the CA restricts use of the key to the purpose indicated. However, applications that use certificates may require that a particular purpose be indicated in order for the certificate to be acceptable.

If a certificate contains both the key usage field and the extended key usage field as critical then both fields must be processed independently, and the certificate can be used only for a purpose that satisfies both key usage values. However, if there is no purpose that can satisfy both key usage values, then that certificate must not be used for any purpose.

When you procure a certificate, ensure that it has the proper key usage defined to satisfy the requirements for client or server certificates without which the TLS handshake would fail.

Recommended key usage and extended key usages for certificates used in Apigee Edge

Purpose Key usage

(mandatory)

Extended key usage

(optional)

Server entity certificate used in Apigee Edge keystore of virtual host
  • Digital signature
  • Key encipherment or key agreement
TLS Web server authentication
Client entity certificate used in Apigee Edge truststore of virtual host
  • Digital signature or key agreement
TLS Web client authentication
Server entity certificate used in Apigee Edge truststore of target server
  • Digital signature
  • Key encipherment or key agreement
TLS Web server authentication
Client entity certificate used in Apigee Edge keystore of target server
  • Digital signature or key agreement
TLS Web client authentication
Intermediate and root certificates
  • Certificate sign
  • Certificate revocation list (CRL) sign

Before you begin

Before you use the steps in this document, be sure you understand the following topics:

  • If you aren’t familiar with a certificate chain, read Chain of trust.
  • If you aren’t familiar with the OpenSSL library, read OpenSSL
  • If you want to learn more about key usage extensions and extended key usage, read RFC5280.
  • If you want to use the command-line examples in this guide, install or update to the latest version of OpenSSL client
  • Ensure the certificates are in PEM format and if not, convert the certificates to PEM format.

Validate the purpose of the certificate

This section describes the steps used to validate the purpose of the certificate.

  1. Login to the server where OpenSSL exists.
  2. To get the key usage of a certificate, run the following OpenSSL command:
    openssl x509 -noout -ext keyUsage < certificate

    Where certificate is the name of the certificate.

    Sample output

    openssl x509 -noout -ext keyUsage < entity.pemX509v3 Key Usage: critical Digital Signature, Key Enciphermentopenssl x509 -noout -ext keyUsage < intermediate.pemX509v3 Key Usage: critical Certificate Sign, CRL Sign
  3. If a key usage is mandatory, then it will be defined as critical as follows:
    openssl x509 -noout -ext keyUsage < intermediate.pemX509v3 Key Usage: critical Certificate Sign, CRL Sign
  4. Run the following command to get the extended key usage for a certificate. If the extended key usage is not defined as critical, then it is a recommendation and not a mandate.
    openssl x509 -noout -ext extendedKeyUsage < certificate

    Where certificate is the name of the certificate.

    Sample output

    openssl x509 -noout -ext extendedKeyUsage < entity.pemX509v3 Extended Key Usage: TLS Web Server Authentication, TLS Web Client Authenticationopenssl x509 -noout -ext extendedKeyUsage < intermediate.pemX509v3 Extended Key Usage: TLS Web Server Authentication, TLS Web Client Authentication
Validating certificate purpose  |  Apigee Edge  |  Apigee Docs (2024)
Top Articles
i turned on https redirection to https but when i do http/mydomain.com it says site can't be reached
Short Run: Definition in Economics, Examples, and How It Works
Was ist ein Crawler? | Finde es jetzt raus! | OMT-Lexikon
News - Rachel Stevens at RachelStevens.com
What Auto Parts Stores Are Open
Tyrunt
Pike County Buy Sale And Trade
Jet Ski Rental Conneaut Lake Pa
Brenna Percy Reddit
Hallelu-JaH - Psalm 119 - inleiding
UEQ - User Experience Questionnaire: UX Testing schnell und einfach
Fredericksburg Free Lance Star Obituaries
Nalley Tartar Sauce
Find Such That The Following Matrix Is Singular.
Harem In Another World F95
Violent Night Showtimes Near Amc Fashion Valley 18
Spoilers: Impact 1000 Taping Results For 9/14/2023 - PWMania - Wrestling News
Uktulut Pier Ritual Site
Stardew Expanded Wiki
Nhl Tankathon Mock Draft
Timeforce Choctaw
Jc Green Obits
Inbanithi Age
kvoa.com | News 4 Tucson
Regina Perrow
The Banshees Of Inisherin Showtimes Near Broadway Metro
FAQ's - KidCheck
Farm Equipment Innovations
Fuse Box Diagram Honda Accord (2013-2017)
Jesus Calling Feb 13
950 Sqft 2 BHK Villa for sale in Devi Redhills Sirinium | Red Hills, Chennai | Property ID - 15334774
Christmas Days Away
Plato's Closet Mansfield Ohio
24 slang words teens and Gen Zers are using in 2020, and what they really mean
Ni Hao Kai Lan Rule 34
Police Academy Butler Tech
Mistress Elizabeth Nyc
In Polen und Tschechien droht Hochwasser - Brandenburg beobachtet Lage
Boggle BrainBusters: Find 7 States | BOOMER Magazine
Puretalkusa.com/Amac
Home Auctions - Real Estate Auctions
Patricia And Aaron Toro
Avance Primary Care Morrisville
Oakley Rae (Social Media Star) – Bio, Net Worth, Career, Age, Height, And More
Premiumbukkake Tour
Espn Top 300 Non Ppr
Rick And Morty Soap2Day
Suppress Spell Damage Poe
Spn 3464 Engine Throttle Actuator 1 Control Command
Uno Grade Scale
Charlotte North Carolina Craigslist Pets
Hy-Vee, Inc. hiring Market Grille Express Assistant Department Manager in New Hope, MN | LinkedIn
Latest Posts
Article information

Author: Twana Towne Ret

Last Updated:

Views: 5706

Rating: 4.3 / 5 (64 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Twana Towne Ret

Birthday: 1994-03-19

Address: Apt. 990 97439 Corwin Motorway, Port Eliseoburgh, NM 99144-2618

Phone: +5958753152963

Job: National Specialist

Hobby: Kayaking, Photography, Skydiving, Embroidery, Leather crafting, Orienteering, Cooking

Introduction: My name is Twana Towne Ret, I am a famous, talented, joyous, perfect, powerful, inquisitive, lovely person who loves writing and wants to share my knowledge and understanding with you.