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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:44:04+00:00 2026-05-24T05:44:04+00:00

I am working on C# project where tcp transmition between server and client is

  • 0

I am working on C# project where tcp transmition between server and client is made using SSL. I created certificate file with makecert program, but it works only on computer where it was generated (although I have installed .cer file). I am almost sure, that the problem lies in parameters which I put into command, but I checked many combinations and none (despit following) worked

makecert -r -pe -n "CN=This is my certificate" -ss my -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12 ca.cer

.cer file is used only for ciphering transmition. I don’t use PKI. Furthermore using SSL is “dead requirement” – it must be used, just for be used. Any security issues shouldn’t be considered.

If anyone should answer me, how to create certificate, that will be able to be used by X509Certificate.CreateFromCertFile method I would be delighted.

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

    If you control all of the machines that will use these certificates, you can create a CA that’s trusted by all of the machines, and then issue certificates based on that.

    Here are my batch files. The first one creates the CA certificate:

    :// Create a self-signed certificate (-r),
    :// with an exportable private key (-pe),
    :// using SHA1 (-r), for signing (-sky signature).
    :// The private key is written to a file (-sv).
    makecert -r -pe -n "CN=My Root Authority" -ss CA ^
        -sr CurrentUser -a sha1 -sky signature -cy authority ^
        -sv CA.pvk CA.cer
    

    Import the .CER file into the CA certificate store on those machines that must connect to the server (they must trust the CA):

    :// Import that certificate into the
    :// "Trusted Root Certification Authorities" store.
    certutil -user -addstore Root CA.cer
    

    This one creates a server certificate:

    :// Create a server certificate, with an exportable private key (-pe),
    :// using SHA1 (-r) for key exchange (-sky exchange).
    :// It can be used as an SSL server certificate (-eku 1.3.6.1.5.5.7.3.1).
    :// The issuing certificate is in a file (-ic), as is the key (-iv).
    :// Use a particular crypto provider (-sp, -sy).
    makecert -pe -n "CN=server.example.com" -a sha1 ^
        -sky exchange -eku 1.3.6.1.5.5.7.3.1
        -ic CA.cer -iv CA.pvk ^
        -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12 ^
        -sv server.pvk server.cer
    pvk2pfx -pvk server.pvk -spc server.cer -pfx server.pfx
    

    Install the .pfx file, and then get the C# server code to use it. This is left as an exercise for the reader.

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

Sidebar

Related Questions

I am working on TCP client server application using c++.third party lib are now
While working a project tonight, I ended up using one .js resource file for
I'm working on a personal project which is an RPC (client-server) in C++. The
For a project we're working on, we're using .NET remoting to communicate between the
I'm working on a server project in C#, and after a TCP message is
I am working on project -online file management where we have to tore file
Currently I am working on video conferencing project.For this i m using pwnat for
I'm working in a project for the iPad, it is a small program and
Currently I am working on a network project which includes connecting to tcp servers
I want to develop a chat application with a server/client model, opening TCP or

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.