Re: Auto certificate and key generation to pfx

From: David Cross [MS] (dcross_at_online.microsoft.com)
Date: 04/21/05


Date: Thu, 21 Apr 2005 05:32:34 -0700

If you want to submit from a Windows 2000 client, you will have to use
IcertRequest. Both XP and 2003 suppport ICertRequest2

-- 
David B. Cross [MS]
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Top Whitepapers:
Auto-enrollment whitepaper: 
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/security/autoenro.mspx
Best Practices for implementing Windows Server 2003 PKI: 
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/security/ws3pkibp.mspx
Troubleshooting Certificate Status and Revocation whitepaper: 
http://www.microsoft.com/technet/security/topics/crypto/tshtcrl.mspx
Windows Server 2003 web enrollment and troubleshooting guide: 
http://www.microsoft.com/technet/prodtechnol/windowsserver2003/technologies/security/webenroll.mspx
"Gary" <gman@discussions.microsoft.com> wrote in message 
news:025101c543f2$4d415100$a501280a@phx.gbl...
> Hi again,
>
> So IEnroll allows creating requests and ICertRequest2
> allows submitting it to a Certificate Services server. But
> in MSDN help it says that ICertRequest2 is only available
> on Windows Server 2003. Does this mean that a client
> running say Win 2000 can call this function, but it
> actually executes on the server?
>
> Does any code need to be written by me on the server side?
>
> Thanks,
> Gary.
>
>
>>-----Original Message-----
>>Thanks, it looks like that whitepaper might have all the
>>answers.
>>
>>Gary.
>>
>>
>>>-----Original Message-----
>>>Technically speaking, CryptoAPI is not used for
>>generating requests or
>>>enrollment, but the classes merely use CryptoAPI for
>>certain functionality.
>>>Enrollment samples:
>>>
>>>http://msdn.microsoft.com/security/default.aspx?
>>pull=/library/en-us/dncapi/html/certenrollment.asp
>>>
>>>
>>>-- 
>>>David B. Cross [MS]
>>>--
>>>This posting is provided "AS IS" with no warranties, and
>>confers no rights.
>>>
>>>
>>>Top Whitepapers:
>>>
>>>Auto-enrollment whitepaper:
>>>http://www.microsoft.com/technet/prodtechnol/windowsserve
> r
>>2003/technologies/security/autoenro.mspx
>>>
>>>Best Practices for implementing Windows Server 2003 PKI:
>>>http://www.microsoft.com/technet/prodtechnol/windowsserve
> r
>>2003/technologies/security/ws3pkibp.mspx
>>>
>>>Troubleshooting Certificate Status and Revocation
>>whitepaper:
>>>http://www.microsoft.com/technet/security/topics/crypto/t
> s
>>htcrl.mspx
>>>
>>>Windows Server 2003 web enrollment and troubleshooting
>>guide:
>>>http://www.microsoft.com/technet/prodtechnol/windowsserve
> r
>>2003/technologies/security/webenroll.mspx
>>>"Gary" <gman@discussions.microsoft.com> wrote in message
>>>news:04ea01c54157$aec4a410$a501280a@phx.gbl...
>>>> Thanks for the reply. I suppose my question should have
>>>> been: is it possible to use the CryptoAPI to perform
> all
>>>> the tasks involved in requesting a certificate and
>>>> keypair, receiving the generated certificate and
>>keypair,
>>>> exporting them to a pfx file and then deleting the cert
>>>> and private key off the machine?
>>>>
>>>> Regarding the certificate request:
>>>> I have found the example using the CryptoAPI to create
> a
>>>> certificate request (I assume you can request a new
>>>> keypair to be generated). How is this request sent to
>>the
>>>> certificate server, and how is it returned?
>>>>
>>>> Regarding the certificate and keypair export:
>>>> As far as I know, I can use the PFXExportCertStoreEx
>>>> function to export the certificate and private key to a
>>>> pfx file. Does this function export all certificates in
>>>> the chain? How do you delete the private key?
>>>>
>>>> Thanks,
>>>> Gary.
>>>>
>>>>
>>>>>-----Original Message-----
>>>>>No, certificate server does not return a PFX file, you
>>>> would have to export
>>>>>the key pair and certificate after it had been
> generated
>>>> and issued.
>>>>>
>>>>>-- 
>>>>>David B. Cross [MS]
>>>>>--
>>>>>This posting is provided "AS IS" with no warranties,
> and
>>>> confers no rights.
>>>>>
>>>>>
>>>>>Top Whitepapers:
>>>>>
>>>>>Auto-enrollment whitepaper:
>>>>>http://www.microsoft.com/technet/prodtechnol/windowsser
> v
>>er
>>>> 2003/technologies/security/autoenro.mspx
>>>>>
>>>>>Best Practices for implementing Windows Server 2003
> PKI:
>>>>>http://www.microsoft.com/technet/prodtechnol/windowsser
> v
>>er
>>>> 2003/technologies/security/ws3pkibp.mspx
>>>>>
>>>>>Troubleshooting Certificate Status and Revocation
>>>> whitepaper:
>>>>>http://www.microsoft.com/technet/security/topics/crypto
> /
>>ts
>>>> htcrl.mspx
>>>>>
>>>>>Windows Server 2003 web enrollment and troubleshooting
>>>> guide:
>>>>>http://www.microsoft.com/technet/prodtechnol/windowsser
> v
>>er
>>>> 2003/technologies/security/webenroll.mspx
>>>>>"Gary" <gman@discussions.microsoft.com> wrote in
> message
>>>>>news:100601c54015$25ffa910$a501280a@phx.gbl...
>>>>>> Hi,
>>>>>>
>>>>>> Is it was possible to use the Crypto API and a
>>>> certificate
>>>>>> server to automate the generation of a certificate
> and
>>>> its
>>>>>> keypair, and export to a pfx file?
>>>>>>
>>>>>> For example, is it possible to pass all the
>>information
>>>>>> such as the subject name, the type of certificate,
> the
>>>>>> hashing algorithm, validity period, etc in a string
>>(or
>>>>>> equivalent) along with a private key password which
>>>> would
>>>>>> then be processed by the certificate server. The cert
>>>>>> server would then return the generated cert and
>>keypair
>>>> in
>>>>>> a pfx file or just the cert in a cer file (or both
>>>> formats
>>>>>> if requested)...
>>>>>>
>>>>>> Thanks,
>>>>>> Gary.
>>>>>>
>>>>>
>>>>>
>>>>>.
>>>>>
>>>
>>>
>>>.
>>>
>>.
>> 


Relevant Pages

  • Re: Need help configuring Wireless Connection profile
    ... and I can only use the intel OR windows utility, not both at the same time. ... Windows authentication for all users,4129,LRG\ryanv,4149,Wireless WPA2 ... SMALL BUSINESS SERVER: ... STEP #1 Install Certificate Services ...
    (microsoft.public.windowsxp.general)
  • Re: Enterprise CA access
    ... 2000 native domain and was able to request and receive certificates for my ... Windows 2003 Server domain member via the mmc certificates snapin. ... Windows 2003 Server are you able to access a share on the Certificate ...
    (microsoft.public.win2000.security)
  • Re: EAP-TLS with windows CE
    ... The AP was sending out an Identity Request every second, ... request to the identification server. ... When the server asks the Windows CE device to identify itself, ... I could easily steal your authentication information. ...
    (microsoft.public.windowsce.platbuilder)
  • Multiple Vulnerabilities in Sun-One Application Server
    ... Multiple Vulnerabilities in Sun-One Application Server ... on Windows 2000, SPI Labs discovered a number of vulnerabilities. ... the case of the file extension in the HTTP request. ...
    (Bugtraq)
  • [VulnWatch] Multiple Vulnerabilities in Sun-One Application Server
    ... Multiple Vulnerabilities in Sun-One Application Server ... on Windows 2000, SPI Labs discovered a number of vulnerabilities. ... the case of the file extension in the HTTP request. ...
    (VulnWatch)