# Scripting Server

- - Home
- - HttpRequest
  - HttpResponse
- - GPError
  - GPSystem
  - ByteString
  - ByteBuffer
  - TLV
  - TLVList
  - Card
  - Atr
  - Key
  - Crypto
  - Application
  - GPApplication
  - GPSecDomain
- - ASN1
  - CardFile
  - IsoSecureChannel
  - ApplFactory
  - GPXML
  - JsScript
  - CardSim
- - X509
  - CRL
  - KeyStore
  - Signed CMS
  - Enveloped CMS
  - CMS Generator
  - XMLSignature
  - OCSPQuery
  - LDAP
  - SOAP
  - URLConnection
- - PKCS11Provider
  - PKCS11Session
  - PKCS11Object
- - OpenSCDP

# Installing the Jetty Server Bundle

The Jetty Server Bundle contains a preconfigured Jetty Server and the Scripting Server web application.

To install the package perform the following steps:

1. Download the Jetty Server Bundle
2. Unpack the zip archive into a directory of your choice
3. Change to the directory and run the start.cmd batch file
4. Open your browser and enter the URL http://localhost:8080

The default configuration is configured for http and https protocol (TLS). TLS requires client authentication using a X.509 certificate. The bundle comes configured with test keys and certificates located in the etc/ssl directory. To setup your browser to use TLS, you will need to import the PKCS#12 keys and certificates (client.p12) into you browser.

We strongly advice to replace the provided test keys and certificate with self generated keys and certificates before using the Scripting Server in a production environment.

# Installing the Scripting Server Standalone Version

The standalone version comes with a launcher module that installs a tray icon. Use the tray icon to inspect the log, open the browser with the UI or to shutdown the server.

1. Download and unpack the archive into a directory of your choice
2. Run the scriptingserver batch file contained in the unpacked directory
3. Click on the tray icon to open the log, the browser or to shutdown the server

# Installing the Scripting Server Web Archive

To install the package perform the following steps:

1. Download the Jetty Server Bundle
2. Unpack the zip archive into a directory of your choice
3. Deploy the .war file contained in `jetty/webapps`onto a running servlet container
4. Open your browser and enter the URL http://localhost:8080

# Defining the application to execute

All variants support the environment variable `SCRIPTINGSERVER_USERDIR`. Make this variable point to your application directory containing the `apps/startup.js` file. See Getting Started for more details.

© Copyright 2003 - 2024 CardContact Systems GmbH , Minden, Germany