privatekey

OpenSSL and generating CSRs at client side

I need a favour from you. My infrastructure is IIS 6.0 and windows server 2003. I need to investigate the use of OpenSSL and the construction of media that can be sent to end users, allowing them to generate CSRs, as well as produce documentation to support the signing of the CSR. What I mean is, I need to send a CD to the end user wit...

Clientside CSR generation using openSSL

Hello All, I am sending an openSSL script to the client along with my companies PublicKey. The idea is, client has to run a batch file which it will run some openSSL commands in the background and generate his privatekey and csr file. While generating the CSR file I need to supply a config file to the openSSL req command. example ...

Internet Explorer and client authetication

I would like to have Intenet Explorer allow me to choose an identity when connecting to a client-authentication enabled web server. Currently I have my Tomcat web server configured to use client authentication. I also have an ssl client accessing a keystore and successfully connecting to the web server. However when trying to get IE...

How to create a private key for iPhone Distribution Certificate?

In iPhone Developer Program Portal, there's a video to demonstrate how to create a development certificate and assign a private key Now I have finished the development process and starting to distribute I have created a "Distribution Certificate", but how do I assign a private key to this certificate? As it got the "CodeSign error: c...

Encrypting a BouncyCastle RSA Key Pair and storing in a SQL2008 database

I have a function that generates a BouncyCastle RSA key pair. I need to encrypt the private key and then store the encrypted private and public keys into separate SQL2008 database fields. I am using the following to get the keypair: private static AsymmetricCipherKeyPair createASymRandomCipher() { RsaKeyPairGenerator r = new RsaKeyPai...

SSL Cert with exportable private key

Hi, I got a trial server certificate from completeSSL with the plan to use it to sign my Azure production site. It turns out that I need a certificate with an exportable private key ... and my new trial certificate is not such. Does anyone know which of the ssl vendors sell certificates with exportable private key? ...

I need to sign a binary stream with a certificate

I basically need to create a self signed certificate and then sign a binary stream with it to create a signature. I tried searching Google but i can't seem to get the right keywords for related results. Any help is appreciated. ...

RSA decrypt with Java

I am trying to decrypt a string with RSA. It was encrypted in C# on the iPhone and I have the private key. This seems like a silly problem, but all of the examples I have seen show generating the private key. I have the private key (it is a byte[] of hex). It using PKCS#1 padding. The part I cannot figure out how to do is create a ja...

Loading my private key for use in git on Mac

I'm trying to use git on a Mac (I'm a Mac newbie.) I obviously have to load my private key. On my Windows machine I just use pageant and msysgit. How do I load my private key into git on the Mac? ...

Protect private key in Qt application

I have a Qt application written in C++ that uses a SSL-connection (QSslSocket) with another application for extra security. However, the application has a private key embedded in it. With applications like Process Explorer it's really easy to fish out the private key. (Properties of file -> Strings) Security is not very important for m...

Encrypting with RSA private key in Java

I'm trying to encrypt some content with an RSA private key. I'm following this example: http://www.junkheap.net/content/public_key_encryption_java but converting it to use private keys rather than public. Following that example, I think what I need to do is: Read in a DER-format private key Generate a PCKS8EncodedKeySpec call gener...

How to communicate AES initialization Vector to client for hybrid cryptosystem.

I need to implemented security for client-server communication. I have implemented the following hybrid cryptosystem: http://en.wikipedia.org/wiki/Hybrid%5Fcryptosystem To encrypt a message addressed to Alice in a hybrid cryptosystem, Bob does the following: Obtains Alice's public key. Generates a fresh symmetric key for the data enca...

What are some efficient ways to generate challenge/response for a backdoor entry scheme?

We have a system that uses password authentication to access a database, the usernames and encrypted passwords are stored in the database. when a user forgets their password, (or the administrator leaves for greener pastures) we want to be able to generate a new password for the current administrator or generate a new administrator. We ...

How to import PKCS#8 RSA privateKey (created by OpenSSL) in C#

I'm trying to find a way to read a privateKey created using OpenSSL PKCS#8 RSA in C# without use external library. Someone know how can i do this? ...

Is there a way to check with calls into my web-application API came from my distributed client???

Hi, Is there a way to check with calls into my web-application API came from my distributed client??? That is if I have both a thick client (windows forms client say) and the server side web application that exposes a HTTPS interface (assume user puts username/passwork into the client configuration for authentication), is there a way t...

Generating an RSA Key Pair with Erlang?

Erlang has a crypto function which generates public private keys (documentation copied below). However the documentation seems vague and I can't find any example code that describes how to generate the shared prime number or the generator. Can someone post an example that generates a public/private key pair? Thanks in advance for any ...

Do I need captcha public key and/or private key for localhost?

I am developing locally with PHP on Xampp. I am trying to use recaptcha. Do I need public and/or private key? Thanks in advance. ...

How to read a private key from pvk file in C#?

Hi, I have to read a private key, and this key is on pvk format. I use X509Certificate2 class, but i this class i have only public key access. How can i get a private key from pvk file? thanks Luiz Costa ...

Is there a way to alter a public key in a way that the decryption can still be done with the private key after some alteration?

In an asymetric encryption scheme, I was wondering if it's possible to achieve the following: Bob sends to Alice his public key Alice alters Bob's public key and encrypt some document with it Alice sends the encrypted document to Bob Bob retrieve the document but can't decrypt it with his private key Later, Alice sends some additional ...

How can I use openssl(*from the CLI) to encrypt a message using my public key and then decrypt it using my private key?

Here is what I've tried: Encrypt message w/ my public key openssl enc -aes-256-cbc -salt -kfile key.pub -in message.txt -out message.enc Decrypt message using my private key openssl enc -d -aes-256-cbc -salt -in message.enc -pass file:mykey.pem Error from decryption bad decrypt 452:error:06065064:digital envelope routines:EVP_De...