List ciphers used by JVM

'How Do I...' and 'How to...' Guide to Stash

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

These are instructions to list all the ciphers that the JVM has available to it when using secure connections.


List the ciphers

  1. Download the Ciphers.java program to a temporary location (e.g. /tmp).
  2. From the command line navigate to this location and run:

    javac Ciphers.java
    java Ciphers

The command above will produce a list of ciphers that the JVM knows about.

To add other ciphers

You may need to have more ciphers in your JVM. For that, you need to download and install the Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files for your JDK.

  1. Access http://www.oracle.com/technetwork/java/javase/downloads/index.html, search for JCE and download it.
  2. Make sure you are downloading the JCE for your JDK version.
  3. Unpack the download in a temporary location (e.g. /tmp).
  4. Locate the lib/security directory inside your JAVA_HOME. Depending on whether you're running a JDK or a JRE that would be JAVA_HOME/lib/security or JAVA_HOME/jre/lib/security
  5. Backup the local_policy.jar and US_export_policy.jar jars from that directory.
  6. Copy the local_policy.jar and US_export_policy.jar jars from the JCE policy files into your lib/security directory.
  7. Run java Ciphers again. More ciphers from you compatible ciphers list should be found now. If so, proceed with the next steps.
  8. Make sure the ciphers attribute is present in your server.xml (as in Git clone fails with SSL routines:SSL23_GET_SERVER_HELLO).
  9. Restart Stash.





Last modified on Mar 30, 2022

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.