Javascript certificate maker code???

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • javatiger

    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
  • Grant Wagner

    #2
    Re: Javascript certificate maker code???

    javatiger wrote:
    [color=blue]
    > 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[/color]

    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 <gwagner@agrico reunited.com>
    comp.lang.javas cript FAQ - http://jibbering.com/faq

    Comment

    • Andre Herbst

      #3
      Re: Javascript certificate maker code???

      Grant Wagner wrote:[color=blue]
      > javatiger wrote:
      >[color=green]
      >> 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[/color]
      >
      > 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.[/color]

      What about cookies?


      Comment

      • Grant Wagner

        #4
        Re: Javascript certificate maker code???

        Andre Herbst wrote:
        [color=blue]
        > Grant Wagner wrote:[color=green]
        > > javatiger wrote:
        > >[color=darkred]
        > >> 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[/color]
        > >
        > > 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.[/color]
        >
        > What about cookies?[/color]

        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 <gwagner@agrico reunited.com>
        comp.lang.javas cript FAQ - http://jibbering.com/faq

        Comment

        • Andre Herbst

          #5
          Re: Javascript certificate maker code???

          Grant Wagner wrote:[color=blue]
          > Andre Herbst wrote:
          >[color=green]
          >> Grant Wagner wrote:[color=darkred]
          >>> 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.[/color]
          >>
          >> What about cookies?[/color]
          >
          > What about them?[/color]

          With cookies you can write information to the local disk. You could store
          the licenses inside them.


          Comment

          • Michael Winter

            #6
            Re: Javascript certificate maker code???

            On Mon, 9 Aug 2004 23:06:28 +0200, Andre Herbst <moorkonig@comp userve.de>
            wrote:

            [snip]
            [color=blue]
            > With cookies you can write information to the local disk. You couldstore
            > the licenses inside them.[/color]

            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

            Comment

            • javatiger

              #7
              Re: Javascript certificate maker code???

              Grant Wagner <gwagner@agrico reunited.com> wrote in message news:<411791C8. DA1189F7@agrico reunited.com>.. .[color=blue]
              > javatiger wrote:
              >[color=green]
              > > 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[/color]
              >
              > 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?[/color]

              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.

              Comment

              • Grant Wagner

                #8
                Re: Javascript certificate maker code???

                javatiger wrote:
                [color=blue]
                > Grant Wagner <gwagner@agrico reunited.com> wrote in message news:<411791C8. DA1189F7@agrico reunited.com>.. .[color=green]
                > > javatiger wrote:
                > >[color=darkred]
                > > > 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[/color]
                > >
                > > 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?[/color]
                >
                > 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.[/color]

                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 <gwagner@agrico reunited.com>
                comp.lang.javas cript FAQ - http://jibbering.com/faq

                Comment

                Working...