473,626 Members | 3,420 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3774
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 misunderstandin g your question?

--
Grant Wagner <gw*****@agrico reunited.com>
comp.lang.javas cript 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*****@agrico reunited.com>
comp.lang.javas cript 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*******@comp userve.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*****@agrico reunited.com> wrote in message news:<41******* ********@agrico reunited.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 misunderstandin g 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*****@agrico reunited.com> wrote in message news:<41******* ********@agrico reunited.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 misunderstandin g 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.h tml">
<input type="text" name="personsNa me">
<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.substri ng(1);
var Parameters = {};
var nameValuePairs = searchString.sp lit(/&/);
var nameValuePair;
for (var i = 0; i < nameValuePairs. length; i++) {
nameValuePair = nameValuePairs[i].split(/=/);
Parameters[nameValuePair[0]] = nameValuePair[1];
}
document.write(
'<h1>Certificat e for ' +
Parameters['personsName'] +
'</h1>' +
'<h2>issued on ' +
Parameters['theDate'] +
'.</h2>' +
'<h3>Congratula tions 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*****@agrico reunited.com>
comp.lang.javas cript 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
2093
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 the onreset attribute of the form element. function removeWarningMsg() { if (isIE) { document.all.Warning.style.color = "<%=BACKGROUND_COLOUR%>";
1
1135
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 example, if I have a list of family members: John Dave Paul If you move the mouse over one of the names, a little box shows up and
6
2221
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 have certifications. Javascript is extremely useful. Is there a similar certificate? Thanks. Dung Ping
4
11318
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 works fine. Now I am looking at how to validate the clients certificate programmatically. The client application sends to me with something like: .... Dim myHttp As HttpWebRequest = CType(WebRequest.Create(https://myserver/Receive.aspx),...
2
8957
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 'Certificate Authorities .. ' store, the second in the 'Personal' one. My application need to use the certificate B to sign binary data. In debug mode, my application runs perfectly (under Cassini, VS web server) but after deployment there is no way to...
2
2501
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 seem very offensive to him. For over a year, Crockford has proposed an alternate way of using prototypes like this function object(o) { function F() {} F.prototype = o; return new F();
0
2011
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 got just a basic way of linking when clicking on the picture. If you have a look here: http://www.hthweb.com/001/ are all the files that come after doing a sample gallery. This is the page with the html/flash code:...
2
3870
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: jar:http://www.domain.com/secure-scripts/secure.jar!/thepage.html (sample) in browser (Firefox) which simply won't work. I can't access to html file embedded in jar file. My sample applet IO.java together
0
8707
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8641
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8366
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8510
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5575
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4093
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4202
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2628
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1512
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.