Re: CryptAPI(encryption/decryption)
- From: "Dylan DSilva \(MS\)" <ddsilva@xxxxxxxxxxxxx>
- Date: Mon, 4 Jun 2007 11:21:00 -0700
Yes, the PEM format is Base64 encoded and may additionally be encrypted with
a symmetric cipher (AES, 3DES etc.). In addition to decoding it to
unencrypted binary, you would need to create the PRIVATEKEYBLOB structure
with the fields described in
http://msdn2.microsoft.com:80/en-us/library/ms884374.aspx. Only a
PRIVATEKEYBLOB can be imported into a Microsoft CSP. As I mentioned in my
earlier post, you should be able to find tools that support this conversion.
--
Dylan DSilva
Software Development Engineer
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © Microsoft Corporation. All rights
reserved.
"S.Kumar" <SKumar@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:B8B841E0-5299-4D5F-B619-EE6F7FF02B2D@xxxxxxxxxxxxxxxx
Thanks DSilva,
I like to get little more details.
Is the PEM format is in base64 coded? If I convert the PEM to binary, can
I
load it into Microsoft CSP's?
Thanks in advance
S.Kumar.
"Dylan DSilva (MS)" wrote:
Unfortunately the Microsoft CSPs do not support importing keys in pem
format. You would need to convert your key to the blob format described
in
http://msdn2.microsoft.com/en-us/library/ms884374.aspx (I believe there
are
tools out on the internet that let you do this) or use a custom CSP that
supports keys in pem format.
--
Dylan DSilva
Software Development Engineer
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no
rights.
You assume all risk for your use. © Microsoft Corporation. All rights
reserved.
"S.Kumar" <SKumar@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D1B60822-0411-4666-8263-B58B2ECAF340@xxxxxxxxxxxxxxxx
Hi All,
I'm facing a problem in encryption decryption.
I have the privatekey in pem format.
How can I import this into CSP and decrypt the data which is encrypted
using
public key.
I tried using CryptImportKey () but no success.
Thanks
.
- Follow-Ups:
- Re: CryptAPI(encryption/decryption)
- From: S.Kumar
- Re: CryptAPI(encryption/decryption)
- Prev by Date: Re: Cross Application Communication
- Next by Date: Re: MessageBox goes to Back
- Previous by thread: MessageBox goes to Back
- Next by thread: Re: CryptAPI(encryption/decryption)
- Index(es):
Relevant Pages
|