473,233 Members | 1,753 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,233 software developers and data experts.

Javascript certificate maker code???

Can anyone give me the code or point me in the direction of a simple
javascript certificate maker so that users can input there name and
date so as to use on my site?

cheers
Jul 23 '05 #1
7 3757
javatiger wrote:
Can anyone give me the code or point me in the direction of a simple
javascript certificate maker so that users can input there name and
date so as to use on my site?

cheers


Since client-side JavaScript has no ability to write to the local disk,
even if it could generate certificates, they could not be stored
anywhere locally. If you want your end users to have certificates to use
your site, you'll need to generate them and distribute them to your
users (or pay someone else to generate them).

Maybe I'm misunderstanding your question?

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #2
Grant Wagner wrote:
javatiger wrote:
Can anyone give me the code or point me in the direction of a simple
javascript certificate maker so that users can input there name and
date so as to use on my site?

cheers


Since client-side JavaScript has no ability to write to the local
disk, even if it could generate certificates, they could not be stored
anywhere locally.


What about cookies?
Jul 23 '05 #3
Andre Herbst wrote:
Grant Wagner wrote:
javatiger wrote:
Can anyone give me the code or point me in the direction of a simple
javascript certificate maker so that users can input there name and
date so as to use on my site?

cheers


Since client-side JavaScript has no ability to write to the local
disk, even if it could generate certificates, they could not be stored
anywhere locally.


What about cookies?


What about them?

Are you suggesting that it is possible using client-side JavaScript to
create and store a PKCS #12 certificate in a cookie, them import that
certificate into the browser's certificate store so it is available to sites
that require it?

As I understand it, you are proposing that the steps at the following URLs
can be automated using client-side JavaScript and cookies:

<url: http://www.xs4all.nl/~dorus/linux/https.html#Step5 />
<url: http://www.xs4all.nl/~dorus/linux/https.html#Step6 />

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #4
Grant Wagner wrote:
Andre Herbst wrote:
Grant Wagner wrote:
javatiger wrote:

Can anyone give me the code or point me in the direction of a
simple javascript certificate maker so that users can input there
name and date so as to use on my site?

cheers

Since client-side JavaScript has no ability to write to the local
disk, even if it could generate certificates, they could not be
stored anywhere locally.


What about cookies?


What about them?


With cookies you can write information to the local disk. You could store
the licenses inside them.
Jul 23 '05 #5
On Mon, 9 Aug 2004 23:06:28 +0200, Andre Herbst <mo*******@compuserve.de>
wrote:

[snip]
With cookies you can write information to the local disk. You couldstore
the licenses inside them.


Cookies can only store certain characters. Depending what the certificate
contains, it may not be possible to store it without encoding the
certificate (which will no doubt break it).

Besides, the whole point of certificates is to instil trust in some
object. Unless approved by a central, trusted body, the certificate means
nothing and only a fool would use the signed object.

Or am I missing something here?

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail
Jul 23 '05 #6
Grant Wagner <gw*****@agricoreunited.com> wrote in message news:<41***************@agricoreunited.com>...
javatiger wrote:
Can anyone give me the code or point me in the direction of a simple
javascript certificate maker so that users can input there name and
date so as to use on my site?

cheers


Since client-side JavaScript has no ability to write to the local disk,
even if it could generate certificates, they could not be stored
anywhere locally. If you want your end users to have certificates to use
your site, you'll need to generate them and distribute them to your
users (or pay someone else to generate them).

Maybe I'm misunderstanding your question?


I meant an award certificate, you type in your name, date of award etc
then click go, then theres a page with your award certificate.
Jul 23 '05 #7
javatiger wrote:
Grant Wagner <gw*****@agricoreunited.com> wrote in message news:<41***************@agricoreunited.com>...
javatiger wrote:
Can anyone give me the code or point me in the direction of a simple
javascript certificate maker so that users can input there name and
date so as to use on my site?

cheers


Since client-side JavaScript has no ability to write to the local disk,
even if it could generate certificates, they could not be stored
anywhere locally. If you want your end users to have certificates to use
your site, you'll need to generate them and distribute them to your
users (or pay someone else to generate them).

Maybe I'm misunderstanding your question?


I meant an award certificate, you type in your name, date of award etc
then click go, then theres a page with your award certificate.


Simple:

page1.html:

<body>
<form name="myForm" method="get" action="page2.html">
<input type="text" name="personsName">
<input type="text" name="theDate">
<input type="submit" value="Get certificate">
</form>
</body>

page2.html:

<body>
<script type="text/javascript">
var searchString = window.location.search.substring(1);
var Parameters = {};
var nameValuePairs = searchString.split(/&/);
var nameValuePair;
for (var i = 0; i < nameValuePairs.length; i++) {
nameValuePair = nameValuePairs[i].split(/=/);
Parameters[nameValuePair[0]] = nameValuePair[1];
}
document.write(
'<h1>Certificate for ' +
Parameters['personsName'] +
'</h1>' +
'<h2>issued on ' +
Parameters['theDate'] +
'.</h2>' +
'<h3>Congratulations on your achievement!</h3>'
);
</script>
</body>

Of course, there is no way to stop someone from visiting page1 and issuing certificate after certificate for
themselves or others, for any date they wish.

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Simon | last post by:
I have recently set up a server certificate on a web site. Under certain conditions I need to change the color of a html span element. I do this using the following javascript function called from...
1
by: Avi | last post by:
I am hoping someone here can help me. I would like to create normal text (not a pop-up) that when you move your mouse over it, it brings up a little box that gives extra added description. For...
6
by: Dung Ping | last post by:
If saving Javascript and CSS code as external files, access to them will be more difficult. Extra efforts are needed to open those files. Please verify. Also, I've heard Java and Visual Basic...
4
by: Matt Frame | last post by:
I am working on a special ASP.Net application that receives files from customers. The connection is made via HTTPS and the client sends the file as a POST to my ASP.Net listener. All of this...
2
by: ucb01 | last post by:
Hi, I am working with Visual Studio 2005 in C#. Using makecert I create a self-signed certificate A with a private key then a certificate B based on A. The first is installed in the...
2
by: Peter Michaux | last post by:
Douglas Crockford doesn't seem to like JavaScript's built-in syntax for building new objects based on a prototype object. The constructor function, its prototype property and the "new" keyword all...
0
by: jasper98 | last post by:
Hi all, I've got a big problem trying to combine javascript with xml. I am using the Flash Slideshow Maker: http://www.flash-slideshow-maker.com/ to make some nice photo galleries, but they've...
2
by: JohnLorac | last post by:
Hello, I'm trying to load and write file on local disc drive using signed javascript file. But I have experienced problem running this url: ...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.