Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 5th, 2005, 07:18 AM
Registered User
Join Date: Mar 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default prob with certificate's public/private key

I've installed certificate with private key on my machine. And tried to encrypt and decrypt a file using public/private key(Asymmetric), its happening.

Now when I exported the certificate with public key and encrypt it on different machine using the exported public key, its happening. But when the same encrypted file when tried to decrypt on my machine using associated public key's private key, its giving an error "Bad Data".

If anybody know how to resolve this issue then please share their knowledge.

What I basically want is..
*) Export the certificate onto some other machine, lets say machine 'B', from machine 'A', only with the public key.
*) Encrypt the file using the public key on machine 'B'
*) Decrypt the file using associated public key's private key on machine 'A'.

Thanks & Regards,

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access modifiers private and public markhh Java Basics 3 February 21st, 2008 04:56 AM
X509 public/private key signing and mmc ZeeKoei General .NET 1 January 23rd, 2008 03:52 AM
Private Key with Associated Certificate bdblhk3 BOOK: Beginning Cryptography with Java 1 October 22nd, 2007 04:32 PM
How to generate public and private keys using RSA mannuvashishta VS.NET 2002/2003 0 March 17th, 2007 10:52 AM
event handlers declared as private or public ACE2084 ASP.NET 1.0 and 1.1 Basics 3 January 24th, 2005 12:28 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.