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

  • Home
  • SEARCH
  • 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 7725305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:54:14+00:00 2026-06-01T04:54:14+00:00

I have created a RSA certificate which looks like as follows. Certificate: Data: Version:

  • 0

I have created a RSA certificate which looks like as follows.

Certificate:
Data:
    Version: 3 (0x2)
    Serial Number: 5 (0x5)
    Signature Algorithm: sha1WithRSAEncryption
    Issuer: C=DE, ST=NRW, L=Aachen, O=RWTH Aachen University, CN=Anupam Ashish Root CA/emailAddress=root_ca@gmail.com
    Validity
        Not Before: Mar  1 12:09:56 2012 GMT
        Not After : Nov 26 12:09:56 2014 GMT
    Subject: C=DE, ST=NRW, O=RWTH Aachen University, CN=Middle Box2/emailAddress=mb2@gmail.com
    Subject Public Key Info:
        Public Key Algorithm: rsaEncryption
        RSA Public Key: (1024 bit)
            Modulus (1024 bit):
                00:c5:3f:ef:31:eb:93:48:ca:a9:43:10:a7:35:0f:
                c2:eb:d6:96:28:d1:14:be:0b:9e:f6:b1:c9:ee:6c:
                05:11:92:b3:ac:02:0a:b2:a9:e2:22:19:58:e9:ba:
                72:8d:ff:f4:3d:eb:a1:32:51:ee:02:bc:60:31:77:
                b4:f7:14:e0:04:7d:e4:5a:05:e7:03:6f:b4:76:2a:
                05:a1:d2:01:18:d8:a1:a0:b5:0f:85:88:96:94:84:
                78:26:69:36:3a:66:b0:28:27:ed:58:43:26:c4:00:
                5f:f1:b2:fb:79:38:a1:b3:96:f4:64:df:b1:15:9f:
                ba:1a:ac:56:17:0b:47:06:0b
            Exponent: 65537 (0x10001)
    X509v3 extensions:
        X509v3 Basic Constraints: 
            CA:FALSE
        X509v3 Subject Key Identifier: 
            5D:A1:F3:85:B3:FA:E2:81:9C:F6:C9:8E:E6:63:0F:B5:A3:7E:C3:B7
        X509v3 Authority Key Identifier: 
            keyid:2E:8B:78:D6:B0:52:F9:D8:EB:55:94:60:55:0D:B3:1A:20:50:93:CE
            DirName:/C=DE/ST=NRW/L=Aachen/O=RWTH Aachen University/CN=Anupam Ashish Root CA/emailAddress=root_ca@gmail.com
            serial:E2:08:67:9C:EF:A1:48:1C

        Netscape CA Revocation Url: 
            https://www.example.com/example-ca-crl.pem
Signature Algorithm: sha1WithRSAEncryption
    62:1b:d4:37:45:62:12:54:b1:75:db:dd:fa:21:c6:73:a4:8b:
    08:e0:28:b7:5c:d2:c5:d4:8c:71:97:7b:97:a4:d3:fc:87:d5:
    ea:b2:ba:77:73:61:bf:d5:a5:04:18:f1:3a:a5:eb:bf:68:e0:
    9b:e1:c8:2b:a5:c0:5c:11:48:9f:27:42:e9:d2:fd:0c:ac:1b:
    c8:fa:47:fc:03:d2:cc:52:b2:67:1a:a5:96:47:9c:10:d4:5f:
    67:58:fa:06:b1:12:16:fd:1a:32:e6:77:24:ae:3d:f6:f6:b3:
    a4:ee:58:18:bb:54:d2:57:4e:60:8f:be:89:bb:ad:57:a6:fe:
    31:2a
-----BEGIN CERTIFICATE-----
MIIDqDCCAxGgAwIBAg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TANBgkqhkiG9w0BAQUFAAOBgQBiG9Q3
RWISVLF12936IcZzpIsI4Ci3XNLF1Ixxl3uXpNP8h9Xqsrp3c2G/1aUEGPE6peu/
aOCb4cgrpcBcEUifJ0Lp0v0MrBvI+kf8A9LMUrJnGqWWR5wQ1F9nWPoGsRIW/Roy
5nckrj329rOk7lgYu1TSV05gj76Ju61Xpv4xKg==
-----END CERTIFICATE-----

I am able to read the certificate from a file and have the certificate in memory in x509 structure.
However, for my project I need the hash of the public key that is stored in the Subject Key Identifier(SKID) in the x509v3 extensions component. I am not able to find a clear way as to how do I retrieve this using openssl functions in C.

Please help

Thanks
Anupam

  • 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-01T04:54:15+00:00Added an answer on June 1, 2026 at 4:54 am

    have a look at X509_get_ext_by_NID()

    example:

        int loc = X509_get_ext_by_NID(cert, NID_subject_key_identifier,-1);
        X509_EXTENSION *ext = X509_get_ext(cert, loc);
        if (ext) {
              /* your code here, data is in ext->value->data */
        }
    

    outdated documentation, but still valid:

    http://www.umich.edu/~x509/ssleay/x509_exts.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have created a simple public ref class in the vc++ project, which is
I have created a certificate basically straight from the keytool example page: keytool -genkey
Using Java I have created RSA keypairs. Using Java I can use these keys
I have created a customer RSA key container (for encrypting connection string in web.config)
I have a created a simple applet which sends mail by using smtp.gmail.com on
I have created the following C library for reading an image: typedef struct {
I have created a skin for DotNetNuke 5.x and I attempted to do as
I have created a basic site using ASP.NET routing according to Mike Ormond's example
I have created a simple test form with FormBorderStyle = FixedToolWindow by default and
I have created a file with XmlDocument xmldoc = new XmlDocument(); Can I make

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.