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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:05:23+00:00 2026-05-28T05:05:23+00:00

I have to deploy a software to n clients that will install a certificate

  • 0

I have to deploy a software to n clients that will install a certificate and use it. I don’t want to deploy two files (.pfx and exe) just one (.exe that will contain the .pfx).

What i’m doing now is import the certificate from a location.

X509Certificate2^ x509 = gcnew X509Certificate2;
x509->Import( "C:\\Tmp\\certficate.pfx" );

Is it possible ?

  • 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-28T05:05:23+00:00Added an answer on May 28, 2026 at 5:05 am

    You could always embed the certificate data as a resource.

    One warning though: if someone gets the executable, they can pull out the PFX file pretty easily.

    Are you able to securely distribute the executable?

    Here are some rough steps, distilled from: http://www.spikezilla-software.com/blog/?p=24

    • Add the PFX to your project. Then click once on the file, and in the Properties window, set the Build Action to Embedded Resource
    • Read the embedded PFX file and import the certificate

    This is C# but you should be able to translate to C++/CLI pretty easily:

    var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("MyFile.pfx");
    var bytes = new byte[stream.Length];
    stream.Read(bytes, 0, bytes.Length);
    var cert = new X509Certificate2(bytes, "certPassword");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to deploy a piece of software to pcs that will need to
It appears that we will have to build/deploy one of our new JBoss apps
I have a database in SQL Server 2008. I want to deploy my software
I have been working for two years in software industry. Some things that have
I have built software that I deploy on Windows 2003 server. The software runs
I have to deploy my ASP.NET application into two seperated IIS servers. My application
I already have a deploy.rb that can deploy my app on my production server.
I have a rather complicated deploy setup for our Drupal site that is a
We have 3 software products which use the same .net dlls(code + legacy). All
We have various programs and scripts that we create that we need to deploy

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.