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 6815189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:46:39+00:00 2026-05-26T20:46:39+00:00

I am using OpenSSL to construct my own self signed certificate which I have

  • 0

I am using OpenSSL to construct my own self signed certificate which I have in an X509 structure. I wan’t to extract the certificate data out of the X509 structure into a char array.

I am aware of the following macro:

PEM_Write_X509(file *, certificate *)

This will output to a file something like:

-----BEGIN CERTIFICATE------
DATAHERE
-----END CERTIFICATE-----

What I really want is just the “DATAHERE” part directly into a char array. There are a baffling number of macros for doing various things, but I haven’t stumbled across one that does what I’m after. Is there anything suitable that I haven’t found?

  • 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-05-26T20:46:40+00:00Added an answer on May 26, 2026 at 8:46 pm

    BEGIN and END sections are boundaries for the PEM text. This is standard convention. I believe, removing these sections will make the certificate unusable.

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

Sidebar

Related Questions

I have generated using openssl mycert.pem which contents the certificate. And I converted the
I created a self-signed certificate (created using OpenSSL) and installed it into the Certificate
I am trying to create a self-signed SSL certificate using OpenSSL (the version that
I'm using openssl to create self-signed certs. I'm getting this error with the certs
I have some data that was encrypted using OpenSSL in C++ using aes_256_cbc and
I'm using the openssl utility of debian in order to create a certificate. The
I have a legacy C++ module that offers encryption/decryption using the openssl library (DES
I'm using OpenSSL to connect to mail server. POP3 works fine but I have
I'm creating a x509 certificate using makecert with the following parameters: makecert -r -pe
I have a task to access keys(private) and certificates from iPhone kechain using Openssl,

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.