Re: AcquireCredentialsHandle returns with SEC_E_INTERNAL_ERROR
From: sunit (sunit05_at_gmail.com)
Date: 09/29/05
- Previous message: sunit: "Re: AcquireCredentialsHandle returns with SEC_E_INTERNAL_ERROR"
- In reply to: Rhett Gong [MSFT]: "RE: AcquireCredentialsHandle returns with SEC_E_INTERNAL_ERROR"
- Next in thread: Rhett Gong [MSFT]: "Re: AcquireCredentialsHandle returns with SEC_E_INTERNAL_ERROR"
- Reply: Rhett Gong [MSFT]: "Re: AcquireCredentialsHandle returns with SEC_E_INTERNAL_ERROR"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 29 Sep 2005 00:41:35 -0700
// i fetch a certificate using openssl.I downloaded the openssl (from
openssl.org)and installed it.
i used a command to generate certifcate request.
openssl>req -newkey rsa:1024 -keyout server.key -nodes -days 365 -out
server.crt
with this command a certificate request (server.crt) is generated.i
opened
the server.crt and pasted it contents in Advance option (certificate
service) to get the certificate.i got a certificate named
as"certnew.cer".i
opened the certificate ,there was an option "copy to file".i opted for
PKCS#7 Certificates(.P7B) and named it FileStore.A file was generated
named
as Filestore.p7b
//this my code for certificate store
#define ENCODING_TYPE (PKCS_7_ASN_ENCODING | X509_ASN_ENCODING)
HCERTSTORE m_hMyCertStore;//handle to certificate store
m_hMyCertStore = CertOpenStore(
CERT_STORE_PROV_FILENAME_A,// define the store provider type,here it is
a
//file on disk.
ENCODING_TYPE,// encoding type for certificate & message
NULL, // choose a default CSR.
NULL, //default flag
_T("FileStore.p7b")); //The name of an existing file
//i want to know whether this a right procedure
- Previous message: sunit: "Re: AcquireCredentialsHandle returns with SEC_E_INTERNAL_ERROR"
- In reply to: Rhett Gong [MSFT]: "RE: AcquireCredentialsHandle returns with SEC_E_INTERNAL_ERROR"
- Next in thread: Rhett Gong [MSFT]: "Re: AcquireCredentialsHandle returns with SEC_E_INTERNAL_ERROR"
- Reply: Rhett Gong [MSFT]: "Re: AcquireCredentialsHandle returns with SEC_E_INTERNAL_ERROR"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|