Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8355157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:46:51+00:00 2026-06-09T09:46:51+00:00

What certificate fields are looked when Openssl generates invalid_purpose? I am generating the certificates

  • 0

What certificate fields are looked when Openssl generates invalid_purpose?

I am generating the certificates using OpenSSL.

First I generate a master certificate, followed by client certificate. Now when I am trying to connect with server, it generates Invalid_Purpose.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T09:46:53+00:00Added an answer on June 9, 2026 at 9:46 am

    There’s an extension keyUsage which specifies what can be done with the certificate. Note that some programs are not using this field.

    From X509 documentation:

    X509_V_ERR_INVALID_PURPOSE: unsupported certificate purpose
        the supplied certificate cannot be used for the specified purpose.
    

    Man page x509v3_config(5) lists possible values for the parameter and also for another called extendedKeyUsage:

    Key Usage.
        Key usage is a multi valued extension consisting of a list of names of
        the permitted key usages.
    
        The supporte names are: digitalSignature, nonRepudiation,
        keyEncipherment, dataEncipherment, keyAgreement, keyCertSign, cRLSign,
        encipherOnly and decipherOnly.
    
        Examples:
         keyUsage=digitalSignature, nonRepudiation
         keyUsage=critical, keyCertSign 
    
    Extended Key Usage.
        This extensions consists of a list of usages indicating purposes for
        which the certificate public key can be used for,
    
        These can either be object short names of the dotted numerical form of
        OIDs.  While any OID can be used only certain values make sense. In
        particular the following PKIX, NS and MS values are meaningful:
    
         Value                  Meaning
         -----                  -------
         serverAuth             SSL/TLS Web Server Authentication.
         clientAuth             SSL/TLS Web Client Authentication.
         codeSigning            Code signing.
         emailProtection        E-mail Protection (S/MIME).
         timeStamping           Trusted Timestamping
         msCodeInd              Microsoft Individual Code Signing (authenticode)
         msCodeCom              Microsoft Commercial Code Signing (authenticode)
         msCTLSign              Microsoft Trust List Signing
         msSGC                  Microsoft Server Gated Crypto
         msEFS                  Microsoft Encrypted File System
         nsSGC                  Netscape Server Gated Crypto
    
        Examples:
         extendedKeyUsage=critical,codeSigning,1.2.3.4
         extendedKeyUsage=nsSGC,msSGC
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how to use client certificate authentication in wcf, if the client is using certificate
I am using openssl to get data about x509 certificate. Is there a way
Currently I'm using the BouncyCastle library to generate a certificate. Something like this: X509V3CertificateGenerator
I need to verify the domain of an X509 certificate using C-land OpenSSL. My
I have certificate created using java class CertAndKeyGen and X500Name and I am able
I have a certificate in der format, from it with this command I generate
I need an SSL certificate for a web server. I can generate a self-signed
How do i add these sections to certificate (i am manualy building it using
I am working on a task which is to get the client certificate when
I can't understand general scheme using certificates. For example: I have account on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.