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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:21:38+00:00 2026-06-13T07:21:38+00:00

I have installed openssl for developers from http://gnuwin32.sourceforge.net/packages/openssl.htm . Then, I copy the files

  • 0

I have installed openssl for developers from http://gnuwin32.sourceforge.net/packages/openssl.htm. Then, I copy the files in include folder into C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include folder. I copy the files in lib folder into C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib folder. Then, I put library names into project properties->linker->input->additional dependies. When I run the program, it crashes. How can I fix the problem?

#include "stdafx.h"

#include <stdio.h>

#include <stdlib.h>

#include <openssl/pem.h>

#include <openssl/err.h>

#include <openssl/pkcs12.h>

/* Simple PKCS#12 file reader */

unsigned char *getValue( X509 *cert,int index);
unsigned char *getTckn( X509 *cert);
unsigned char *getRelease( X509 *cert);
unsigned char *getNameSurname( X509 *cert);
unsigned char *getCity( X509 *cert);
unsigned char *getUserType( X509 *cert);

int main(int argc, char **argv) {

    FILE *fp;

    EVP_PKEY *pkey;

    X509 *cert;

    STACK_OF(X509) *ca = NULL;

    PKCS12 *p12;



    const char* fileName = "C:/Users/sercan/Desktop/EBA/eba.p12";
    fprintf(stderr, "Error", fileName);
    OpenSSL_add_all_algorithms();
    fprintf(stderr, "Error", fileName);
    ERR_load_crypto_strings();

    if (!(fp = fopen(fileName, "rb "))) {

        fprintf(stderr, "Error opening file %s\n", argv[1]);

        exit(1);

    }

    fprintf(stderr, "Error", fileName);

    p12 = d2i_PKCS12_fp(fp, NULL);

    fclose(fp);

    if (!p12) {

        fprintf(stderr, "Error reading PKCS#12 file\n");

        ERR_print_errors_fp(stderr);

        exit(1);

    }

    if (!PKCS12_parse(p12, argv[2], &pkey, &cert, &ca)) {

        fprintf(stderr, "Error parsing PKCS#12 file\n");

        ERR_print_errors_fp(stderr);

        exit(1);

    }

    PKCS12_free(p12);



    return 0;

}
  • 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-13T07:21:40+00:00Added an answer on June 13, 2026 at 7:21 am

    Try to download OpenSSL from here: http://slproweb.com/products/Win32OpenSSL.html
    It worked fine for me.
    Also read the README file, which explains how to setup your project accordingly.

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

Sidebar

Related Questions

I installed openssl through binaries and i have that exact files at that exact
I have installed Android SDK and packages. Since I had an error when opening
I have installed my dependencies using bundle package Then transferred them to the offline
Using Java 1.4.2 with unlimited jurisdiction policy files installed. I have a class that
I have successfully installed sshd on cygwin. I can ssh to it from within
Hi i have installed openssl on my linux machine and going through the header
I have installed OpenSSL using sudo apt-get install openssl-dev . When I try to
I have installed openssl and now the rsa_test.c is running fine. What I want
I'm using boost::asio::ssl. I have installed openssl via sudo apt-get install openssl. In my
I have installed the following components of SQL Server 2012: management tools - complete

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.