Java Code Signing: Download certificate & sign code

Generic selectors
Exact matches only
Search in title
Search in content
Filter by Categories
Account Management Help
add photos, video and audio
Add-on features and social media
Advanced campaign settings
All about analytics
All about images
Basic steps
Configure the Web Application Firewall (WAF)
Connect my Calendar and Online Storage to Workspace
contact support
copy files to my site
Create my email address
Customize campaign
Discover domains
discover linux hosting with cPanel
Discover Microsoft 365
Discover Online Storage
Discover Workspace Email
edit content
Email Marketing demo
expand your site with sections and pages
Explore email add-ons
Explore my account
Find server and port settings (IMAP/POP)
fine tune my website
get social
Get started with SSL certificates
Get the most out of Microsoft 365
help my site get found and monitor my metrics
Hosting & Servers
keep my account secure
Keep my email secure
know your privacy rights
Manage your SSL certificate
Managed WordPress
Manual email configuration
Migrate and export my emails
My email account isn’t working (troubleshooting)
nameservers and DNS
online store
parking, forwarding and monetizing
privacy and protection
publish my site
Quick Shopping Cart
Renew my products and services
Set up a campaign
Set up email on my devices
set up my payment methods
Set up my Workspace Email account
start with the basics
Stay productive anywhere with Office apps
Streamline email tasks to help my business
transfer between accounts
transfer between registrars
Troubleshoot email and email setup
Upgrade and renewal options for email
Web & Classic Hosting
Website backups
Website Builder 7
Website Builder version 6
Website Security and Backups
work with databases
work with delegates
working with blogs

After verifying your certificate request, you can download your certificate files and use them to sign your Java code.

Download your certificate

  1. Go to your ELITE WEB Co. product page.
  2. Select SSL Certificates and select Manage for the certificate you want to download.
  3. Under Download Certificate, select a Server type and then select Download Zip File.

Move your certificate file

  1. Unzip the ZIP file you downloaded.
  2. Open the unzipped folder and locate the file ending in -SHA2.pem.
  3. (Optional) Rename the PEM file to something easier to type, for example mycert.pem.
  4. Move the PEM file to the place where you created your keystore.

    For Windows users, this is the bin directory of your JDK installation—for example:
C:\Program Files\java\jdkversion number\bin

Windows-only preparation

If you’re using Windows, you must complete the following steps before you can install the certificate and sign your code.

  1. Run cmd as an administrator.
  2. Move to your JDK installation’s bin directory:
cd C:\Program Files\java\jdkversion number\bin

Install the certificate

  1. Through your command line, navigate to the directory where you created your keystore. (Windows users should already be here.)
  2. Install your certificate:
keytool -importcert -file mycert.pem -keystore codesignstore

3. Enter your keystore’s password.
4. Type yes that you want to trust the certificate, and then press enter.

Sign your code

  1. Sign your code:
jarsigner -verbose -keystore codesignstore -tsa your jar file.jar codesigncert

Windows users might need to use the full paths to their keystore (JKS) and JAR files.

 Note: You must use the time stamp authority.

2. Enter your keystore’s password.
3. Verify your code is signed.

jarsigner -verify -verbose -certs your jar file.jar

If everything worked, you’ll see jar verified.

You should expect to see “This jar contains entries whose certificate chain is not validated.” The presence of this warning does not indicate that your certificate won’t work.

Next step

  • That’s it! You can now start distributing your signed code.