Skip to Main Content
Killer Game Programming in Java
book

Killer Game Programming in Java

by Andrew Davison
May 2005
Intermediate to advanced content levelIntermediate to advanced
998 pages
26h
English
O'Reilly Media, Inc.
Content preview from Killer Game Programming in Java

Third-Party Certificates

Figures B-6 and B-12 show the problem with using self-signed certificates in an application: JWS issues a scary message. The solution is to replace the certificate by one generated by a trusted third party: a CA. Popular CAs include Verisign (http://www.verisign.com/), Thawte (http://www.thawte.com/), and Entrust (http://www.entrust.com). These companies charge money for their services, but a free alternative is CACert.org (https://www.cacert.org/).

Beefing up the certificate for a keypair consists of the following steps:

  1. Extract a Certificate Signing Request (CSR) from the keypair.

  2. Send the CSR to the CA, requesting a certificate.

  3. After checking the returned certificate, import it into the keystore, replacing the keypair's self-signed certificate.

  4. Start signing JARs with the keypair.

Extract a CSR

Generate a CSR with the -certreq option to keytool:

    keytool -certreq -keystore MyKeyStore -alias BugRunner -file BugRunner.csr

This generates a CSR for the BugRunner keypair, stored in BugRunner.csr, a text file of this form:

  -----BEGIN NEW CERTIFICATE REQUEST-----
  MIICoDCCAl4C..... // many more lines
  .....
  -----END NEW CERTIFICATE REQUEST-----

Request a Certificate

The CSR is sent to the CA, usually by pasting its text into a web form accessed via a secure link (a https URL). At CACert.org, this step requires some preliminary work. The users must first join the free CACert.org and send in details about the web domain that they control. This information is checked with ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Game Development with LibGDX: From Beginner to Professional

Java Game Development with LibGDX: From Beginner to Professional

Lee Stemkoski

Publisher Resources

ISBN: 0596007302Supplemental ContentErrata Page