View Single Post
  #161  
Old 12-22-2002, 09:16 PM
AWS's Avatar
AWS AWS is offline
 
Join Date: Nov 2001
Location: Joliet, IL
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What you need:

Java SDK 1.3 (1.4 is current but the applet source won't compile on it. You might not need to compile the applet.)
Jarsigner
Keytool (these tools are part of Java SDK)

How to sign it:

Create a directory to work in. Mine is called j-sign.
Make sure java is in your path.
CD into the working directory.

Now we want to create a cert to sign the applet.

at prompt type this, change any of the bracketed vars to what you want:

keytool -genkey -keystore [ whatever.store ] -alias [ yourcertname ]

Answer the questions that it asks and when you give it a password write it down so you don't forget it.
This will create your cert, now we just have to make it ready for signing.

At prompt:

keytool -export -keystore [ whatever.store ] -alias [ yourcertname ] -file [ yourcertname.cer ]

Make sure the name you give for the file has .cer extension

OK. You got your cert. There should be a file in the j-sign directory called yourcertname.cer.

Now cd into the directory where you untarred or if on Windows unzipped the eirc source and libs. You shouldn't have to compile the source. There are 2 jar files already compiled that you can use. Copy the .jar files to your j-sign directory. CD back to that dir.

Now lets sign them:

jarsigner -keystore [ whatever.store ] EIRC.jar [ yourcertname ]

You will be prompted for the password for your store, the pw you gave when you created the cert, type it in and in a second or 2 the applet will be signed to connect to any IRC server.
Repeat the step above to sign EIRC-gfx.jar and move the signed files to your docroot and test it out.

Remove the brackets when you do this.

The applet will now work with any IRC server that you choose to connect to. Just change the vars of the applet html page.

To see a working version go here.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01110 seconds
  • Memory Usage 1,767KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete