Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Computer Security (http://www.velocityreviews.com/forums/f38-computer-security.html)
-   -   Certificates installation (http://www.velocityreviews.com/forums/t305558-certificates-installation.html)

=?ISO-8859-1?Q?Ney_Andr=E9_de_Mello_Zunino?= 07-01-2004 12:18 AM

Certificates installation
 
Hello.

I have a college assignment to do which deals with the installation of
certificates on 2 web browsers, namely Internet Explorer 6 and Mozilla
1.7. I have started gathering information and found that there are at
least two main ways in which this can be done:

* the user downloads a certificate file as an HTTP resource, which
causes the browser to launch its own certificate installation process;
* the certificate provider includes script code on their website
which does the installation behind the scenes, using each browser's API.

My assignment requires me to analyse the different possibilities and
also to describe how a certificate installation client script would
work. Could anyone provide some tips or resources where I could learn
and find more details about this process?

Thank you,

--
Ney André de Mello Zunino

FreeWilly 07-02-2004 05:22 PM

Re: Certificates installation
 
Here's some sample code. Use Google, and you'll find a boatload of
information.

Taken from: http://pkidev.internet2.edu/rootcerts/

<html>
<head>
<title>Install CREN Root using CEnroll Active-X component and PKCS-7</title>
</head>
<body LANGUAGE="VBScript" ONLOAD="InstallCert">

<SCRIPT LANGUAGE="VBSCRIPT">

Sub InstallCert

credentials =
"MIID0gYJKoZIhvcNAQcCoIIDwzCCA78CAQExADALBgkqhkiG9 w0BBwGgggOnMIIDozCCAoug" &
_
"AwIBAgIFBGAAAAcwDQYJKoZIhvcNAQEEBQAwdDELMAkGA1UEB hMCVVMxOjA4BgNVBAoTMUNS"
& _
"RU4vQ29ycCBmb3IgUmVzZWFyY2ggYW5kIEVkdWNhdGlvbmFsI E5ldHdvcmtpbmcxKTAnBgNV"
& _
"BAsTIEVkdWNhdGlvbiBhbmQgUmVzZWFyY2ggQ2xpZW50IENBM B4XDTk5MTExNzAwMDAwMFoX"
& _
"DTA3MTExNzAwMDAwMFowdDELMAkGA1UEBhMCVVMxOjA4BgNVB AoTMUNSRU4vQ29ycCBmb3Ig"
& _
"UmVzZWFyY2ggYW5kIEVkdWNhdG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if ( (Err.Number = 438) OR (Err.Number = 429) ) Then
Err.Clear
Set Enroll = CreateObject("CEnroll.CEnroll.1")
End If
if Err.Number <> 0 then
document.write("<h2 align=center>Can't instantiate the CEnroll control:
" & Hex(err) )
Else
Call Enroll.InstallPKCS7(credentials)
If err.Number <> 0 then
document.write("<h2 align=center>Problems were detected with the CREN
root certificate download" & " error: " & Hex(err) )
Else
document.write("<h3 align=center>The CREN root certificate was
successfully installed</h3>")
End if
End If

End sub
</SCRIPT>

<br clear=all>
<p>
<!--

Install a Root Certificate using Internet Explorer and the CEnroll ActiveX
control.
This avoids the Microsoft Certificate Installation wizard and all of its
complexity
and extra screens for users.

-->

</BODY>
</HTML>

"Ney André de Mello Zunino" <zunino@inf.ufsc.br> wrote in message
news:2kh3d4F2c0nqU1@uni-berlin.de...
> Hello.
>
> I have a college assignment to do which deals with the installation of
> certificates on 2 web browsers, namely Internet Explorer 6 and Mozilla
> 1.7. I have started gathering information and found that there are at
> least two main ways in which this can be done:
>
> * the user downloads a certificate file as an HTTP resource, which
> causes the browser to launch its own certificate installation process;
> * the certificate provider includes script code on their website which
> does the installation behind the scenes, using each browser's API.
>
> My assignment requires me to analyse the different possibilities and also
> to describe how a certificate installation client script would work. Could
> anyone provide some tips or resources where I could learn and find more
> details about this process?
>
> Thank you,
>
> --
> Ney André de Mello Zunino




goodies1ice 10-31-2008 11:21 AM

This code fails when you run this on a Vista/Windows 2008 at the place it tries to create an object of Cenroll.CEnroll.1

Is there any way we can install the certificate on Vista/Windows 2008


All times are GMT. The time now is 06:59 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.