Author Topic: wc3connect  (Read 4802 times)

Artyom91

  • Advanced Member
  • ****
  • Posts: 257
  • Karma: +2/-43
    • View Profile
wc3connect
« on: February 11, 2014, 04:03:03 pm »
Code: [Select]
This tool generates a keystore that you can use to sign your applet. Note that it will be a self-signed certificate. keytool error: java.lang.NumberFormatException: For input string: ""

Artyom91

  • Advanced Member
  • ****
  • Posts: 257
  • Karma: +2/-43
    • View Profile
Re: wc3connect
« Reply #1 on: February 14, 2014, 04:04:31 pm »
up

Artyom91

  • Advanced Member
  • ****
  • Posts: 257
  • Karma: +2/-43
    • View Profile
Re: wc3connect
« Reply #2 on: February 18, 2014, 08:32:14 pm »
up

uakf.b

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
  • Karma: +86/-12
    • View Profile
Re: wc3connect
« Reply #3 on: February 19, 2014, 10:23:36 am »
The tool needs you to enter fields. If you get that it implies you haven't entered all the needed fields.

Artyom91

  • Advanced Member
  • ****
  • Posts: 257
  • Karma: +2/-43
    • View Profile
Re: wc3connect
« Reply #4 on: February 27, 2014, 08:59:57 pm »
Code: [Select]
echo "This tool generates a keystore that you can use to sign your applet. Note that it will be a self-signed certificate.\n";
$passphrase = readline("Keystore passphrase: 123456");
$commonname = readline("Common name: Hodovoi");
$orgname = readline("Organization name: Hodovoi");
$location = readline("Physical location: Spassk-Dalny");
$state = readline("State/province: 692245");
$country = readline("Country: Russia");
$time = readline("Days to sign for: 100");

$output = shell_exec("keytool -genkey -alias wc3connect -keystore keystore -keypass " . escapeshellarg($passphrase) . " -dname " . escapeshellarg("cn=$commonname, OU=$orgname, O=$orgname, L=$location, S=$state, C=$country") . " -storepass " . escapeshellarg($passphrase) . " -validity " . escapeshellarg($time));

echo $output;

What's wrong?

Artyom91

  • Advanced Member
  • ****
  • Posts: 257
  • Karma: +2/-43
    • View Profile
Re: wc3connect
« Reply #5 on: March 01, 2014, 07:32:52 am »
up

Artyom91

  • Advanced Member
  • ****
  • Posts: 257
  • Karma: +2/-43
    • View Profile
Re: wc3connect
« Reply #6 on: March 02, 2014, 07:50:52 am »
up up up, help please

uakf.b

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
  • Karma: +86/-12
    • View Profile
Re: wc3connect
« Reply #7 on: March 02, 2014, 09:31:08 am »
It is readline, it is reading from command prompt. If you don't want it to then do:

Code: [Select]
$state = "692245";for example

Artyom91

  • Advanced Member
  • ****
  • Posts: 257
  • Karma: +2/-43
    • View Profile
Re: wc3connect
« Reply #8 on: March 02, 2014, 10:34:30 am »
What's wrong?

uakf.b

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
  • Karma: +86/-12
    • View Profile
Re: wc3connect
« Reply #9 on: March 02, 2014, 04:07:24 pm »
What's wrong?
Run your browser from terminal so that you will be able to see any error output. Then paste the error output here. You can also maybe right click applet to access error console.

Artyom91

  • Advanced Member
  • ****
  • Posts: 257
  • Karma: +2/-43
    • View Profile
Re: wc3connect
« Reply #10 on: March 02, 2014, 08:06:35 pm »
I have an empty table wc3connect_list

How to run browser you say?

« Last Edit: March 02, 2014, 11:23:08 pm by Artyom91 »

uakf.b

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
  • Karma: +86/-12
    • View Profile
Re: wc3connect
« Reply #11 on: March 02, 2014, 10:02:47 pm »
You can run browser from terminal by opening terminal and typing, for example, chromium-browser

Artyom91

  • Advanced Member
  • ****
  • Posts: 257
  • Karma: +2/-43
    • View Profile
Re: wc3connect
« Reply #12 on: March 02, 2014, 11:25:30 pm »
Code: [Select]
# chromium-browser

(chromium:22064): Gtk-WARNING **: cannot open display:

uakf.b

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
  • Karma: +86/-12
    • View Profile
Re: wc3connect
« Reply #13 on: March 03, 2014, 08:03:30 am »
You have to open from terminal in window manager, not full terminal.

Artyom91

  • Advanced Member
  • ****
  • Posts: 257
  • Karma: +2/-43
    • View Profile
Re: wc3connect
« Reply #14 on: March 03, 2014, 08:17:44 am »
I Linux && OHsystem