Re: Container Name value gets corrupted after call to createFilePKCS10.

From: Vishal Agarwal[MSFT] (vishala_at_online.microsoft.com)
Date: 12/18/03

  • Next message: Vishal Agarwal[MSFT]: "Re: Certificate services query"
    Date: Thu, 18 Dec 2003 11:34:52 -0800
    
    

    Upon CreatePKCS10 call, the CEnroll object sets the ContainerName to be the
    value returned by CryptGetProvParam call for PP_UNIQUE_CONTAINER. This name
    may or may not be same as the PP_CONTAINER value.

    Thanks,
    Vishal[MSFT]

    -- 
    This posting is provided "AS IS" with no warranties, and confers no rights
    "GC" <anonymous@discussions.microsoft.com> wrote in message
    news:032101c3c553$14e475e0$a001280a@phx.gbl...
    > Hi!
    >
    > Can someone explain me what is going on (maybe wrong) with
    > the Container Name property of the CEnroll Object of MS
    > CSP's platform SDK.
    >
    > I'm performing the following sequence of Steps :
    >
    > 1) Display the Container Name property :-
    >    Result : Valid Guid
    >
    > 2) Create a PKCS10 request File using createFilePKCS10 call
    >
    > 3) Again Display the Container Name property :-
    >    Result : Garbage
    >
    > Even if I supply my own Container name in the above
    > sequence of steps, it produces junk Data in Step 3.
    >
    > Tried both with VC++ & VB code.
    >
    > The VB code snippet is:
    >
    > Dim objEnroll As CEnroll
    > Set objEnroll = New CEnroll
    >
    > MsgBox (objEnroll.ContainerName)
    >
    > Dim strDN As String
    > strDN = "CN=A"           ' common name
    > strDN = strDN & ",OU=B"  ' org unit
    > strDN = strDN & ",O=C"    ' organization
    > strDN = strDN & ",L=D"     ' locality
    > strDN = strDN & ",S=E"  ' state
    > strDN = strDN & ",C=F"          ' country/region
    >
    > Dim strFileName As String
    > strFileName = "myPKCS10.req"
    >
    > objEnroll.createFilePKCS10
    > strDN, "1.3.6.1.4.1.311.2.1.21", strFileName
    >
    > MsgBox (objEnroll.ContainerName)
    >
    > Thanks in advance!
    > GC.
    

  • Next message: Vishal Agarwal[MSFT]: "Re: Certificate services query"

    Relevant Pages

    • Re: make a frame on a form transparant
      ... the frame's 'frame' disappears too. ... support the container property. ... Private Declare Function CreatePolygonRgn _ ... : Dim TPPx As Long ...
      (microsoft.public.word.vba.general)
    • Re: make a frame on a form transparant
      ... the frame's 'frame' disappears too. ... support the container property. ... Private Declare Function CreatePolygonRgn _ ... : Dim TPPx As Long ...
      (microsoft.public.vb.general.discussion)
    • Re: make a frame on a form transparant
      ... the frame's 'frame' disappears too. ... support the container property. ... Private Declare Function CreatePolygonRgn _ ... : Dim TPPx As Long ...
      (microsoft.public.vb.syntax)
    • Re: make a frame on a form transparant
      ... the frame's 'frame' disappears too. ... support the container property. ... Private Declare Function CreatePolygonRgn _ ... : Dim TPPx As Long ...
      (microsoft.public.vb.controls.internet)
    • Re: make a frame on a form transparant
      ... the frame's 'frame' disappears too. ... support the container property. ... Private Declare Function CreatePolygonRgn _ ... : Dim TPPx As Long ...
      (microsoft.public.word.vba.general)