Re: AcquireCredentialsHandle returns with SEC_E_INTERNAL_ERROR

From: sunit (sunit05_at_gmail.com)
Date: 09/29/05

  • Next message: Rhett Gong [MSFT]: "RE: get self signed certicate stored in .p7b file using Certificate Store (CertOpenstore)"
    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


  • Next message: Rhett Gong [MSFT]: "RE: get self signed certicate stored in .p7b file using Certificate Store (CertOpenstore)"

    Relevant Pages

    • RE: RPc server is unavailable since SP1
      ... I ran the command and it created the group and also placed the Domain Users ... DC to Member Server and Member Server to DC and also to clients. ... >>> when the member server update certificate you get the error message RPC ... >>> interface security settings before the installation of SP1 will be lost. ...
      (microsoft.public.windows.server.sbs)
    • Re: Entropy sources under WinXP
      ... you can depict the certificate much more ... If the so-called forums can say pretty, the retail ... holly may command more columns. ...
      (sci.crypt)
    • openssl pkcs7 issue.
      ... I am having an issue with openssl in solaris 9. ... I generated a keypair by using the command: ... "Paste in CSR Certificate Enrollment". ... when it came to the point that the screen asked me to make the certificate request, I copied the 16 character long garbag string as the Common name, and used the following command: ...
      (SunManagers)
    • Re: Apache SSL
      ... Not sure what the make certificate bit does on it's own to be honest, ... OpenSSL to do all the cert stuff. ... > and finally I generated the httpsd.pem with command: ...
      (comp.security.unix)
    • Re: sbs 2k3 - certificate authority web server template - not being able to issue a certific
      ... i had to export the root certificate from fedora and import to the trusted ... Net start certsvc ... msPKI-Certificate-Application-Policy ... At the command prompt, type the following command, and then press ...
      (microsoft.public.windows.server.sbs)