GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - google/conscrypt: Conscrypt is a Java Security Provider that implements parts of the Java Cryptography Extension and Java Secure Socket Extension.

BranchesTags
Open more actions menu

Latest commit

 

History

4,556 Commits
4,556 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
android-stub
android-stub
 
 
android
android
 
 
api-doclet
api-doclet
 
 
build-logic
build-logic
 
 
common/src
common/src
 
 
constants
constants
 
 
expectations
expectations
 
 
gradle
gradle
 
 
libcore-stub
libcore-stub
 
 
licenses
licenses
 
 
openjdk-uber
openjdk-uber
 
 
openjdk
openjdk
 
 
platform
platform
 
 
release
release
 
 
scripts
scripts
 
 
skills/conscrypt_formatting
skills/conscrypt_formatting
 
 
testing
testing
 
 
.clang-format
.clang-format
 
 
.gitignore
.gitignore
 
 
AndroidManifest_instrumentation_test.xml
AndroidManifest_instrumentation_test.xml
 
 
BUILDING.md
BUILDING.md
 
 
CAPABILITIES.md
CAPABILITIES.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
CPPLINT.cfg
CPPLINT.cfg
 
 
IMPLEMENTATION_NOTES.md
IMPLEMENTATION_NOTES.md
 
 
LICENSE
LICENSE
 
 
MODULE_LICENSE_APACHE2
MODULE_LICENSE_APACHE2
 
 
NOTICE
NOTICE
 
 
PREUPLOAD.cfg
PREUPLOAD.cfg
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
fix_format.py
fix_format.py
 
 
flatbuffers-jarjar-rules.txt
flatbuffers-jarjar-rules.txt
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
r8_include_list.txt
r8_include_list.txt
 
 
settings.gradle
settings.gradle
 
 
test_logging.properties
test_logging.properties
 
 

Repository files navigation

Evolving Conscrypt's Open Source Approach

Hello Conscrypt Developers,

We're refining our open source strategy for Conscrypt to ensure its long-term health and sustainability. To optimize our development efforts and focus resources, we are making some changes to how Conscrypt is developed and how we handle contributions. The primary development of Conscrypt will now be done internally at Google. While we value community input, we will no longer be able to accept external contributions in the form of pull requests on the GitHub repository. This change allows us to better allocate resources to core development and ensure the project's long-term sustainability. To ensure transparency and continued access for the community, we will:

  • Continue Mirroring to GitHub: All internal changes will be regularly mirrored to the public GitHub repository. Note that mirroring to GitHub might be paused for a short period of time during the transition to internal development.
  • Maintain Bug Reporting Channels: Please keep reporting bugs through GitHub Issues. For Android-specific bugs, the Android Issue Tracker is the place to go: Report Bugs.

What’s staying the same

The platform version of Conscrypt receives regular updates, including the latest features and security patches, through the Google Play system updates program (Project Mainline). This means that even devices running older Android versions can benefit from the most recent Conscrypt improvements without requiring a full OS update.

What’s changing

As part of this shift, we will no longer be able to accept external pull requests on GitHub.

What do you need to do

  • Immediately, nothing.
  • For Android developers, we recommend leveraging the Conscrypt version built into the Android platform, which is also the default provider.

We appreciate the Conscrypt community and look forward to continuing to offer a secure and efficient security provider.

Guidance for Android App Developers:

Most Android devices include Conscrypt as a core part of the platform's security providers. The Java Cryptography Architecture (JCA) framework allows for multiple security providers, and the system selects one when you request a cryptographic algorithm implementation (like Cipher, SSLContext, MessageDigest, etc.).

Using the Platform Version (Recommended):

To use the platform-provided Conscrypt, you generally don't need to do anything specific. When requesting an algorithm, omit the provider name. The Android system will automatically select the highest-priority provider that offers the requested algorithm, which is typically the built-in Conscrypt.

Example (Java):

import javax.net.ssl.SSLContext;
import java.security.Security;
import java.security.Provider;

try {
    // Get an SSLContext instance using the default highest-priority provider
    SSLContext sslContext = SSLContext.getInstance("TLS");
    // Initialize and use sslContext

    // Example: Listing providers to see what's available
    // Provider[] providers = Security.getProviders();
    // for (Provider provider : providers) {
    //     System.out.println("Provider: " + provider.getName());
    // }
} catch (NoSuchAlgorithmException e) {
    // Handle exception
    e.printStackTrace();
}

Example (Kotlin):

import javax.net.ssl.SSLContext
import java.security.Security
import java.security.Provider

try {
    // Get an SSLContext instance using the default highest-priority provider
    val sslContext = SSLContext.getInstance("TLS")
    // Initialize and use sslContext

    // Example: Listing providers to see what's available
    // val providers = Security.getProviders()
    // providers.forEach { provider ->
    //     println("Provider: " + provider.name)
    // }
} catch (e: NoSuchAlgorithmException) {
    // Handle exception
    e.printStackTrace()
}

By not specifying a provider name in getInstance() calls, you rely on the Android system's default provider order, ensuring you use the up-to-date and maintained version of Conscrypt that is part of the Android platform.

Conscrypt - A Java Security Provider

Conscrypt is a Java Security Provider (JSP) that implements parts of the Java Cryptography Extension (JCE) and Java Secure Socket Extension (JSSE). It uses BoringSSL to provide cryptographic primitives and Transport Layer Security (TLS) for Java applications on Android and OpenJDK. See the capabilities documentation for detailed information on what is provided.

The core SSL engine has borrowed liberally from the Netty project and their work on netty-tcnative, giving Conscrypt similar performance.

Homepage: conscrypt.org
Mailing List: [email protected]

Download

Conscrypt supports Java 8 or later on OpenJDK and Lollipop (API Level 21) or later on Android. The build artifacts are available on Maven Central.

Download JARs

You can download the JARs directly from the Maven repositories.

OpenJDK (i.e. non-Android)

Native Classifiers

The OpenJDK artifacts are platform-dependent since each embeds a native library for a particular platform. We publish artifacts to Maven Central for the following platforms:

Classifier OS Architecture
linux-x86_64 Linux x86_64 (64-bit)
linux-aarch_64 Linux aarch_64 (64-bit)
osx-x86_64 Mac x86_64 (64-bit)
osx-aarch_64 Mac aarch_64 (64-bit)
windows-x86_64 Windows x86_64 (64-bit)

Maven

Use the os-maven-plugin to add the dependency:

<build>
  <extensions>
    <extension>
      <groupId>kr.motd.maven</groupId>
      <artifactId>os-maven-plugin</artifactId>
      <version>1.4.1.Final</version>
    </extension>
  </extensions>
</build>

<dependency>
  <groupId>org.conscrypt</groupId>
  <artifactId>conscrypt-openjdk</artifactId>
  <version>2.9.0</version>
  <classifier>${os.detected.classifier}</classifier>
</dependency>

Gradle

Use the osdetector-gradle-plugin (which is a wrapper around the os-maven-plugin) to add the dependency:

buildscript {
  repositories {
    mavenCentral()
  }
  dependencies {
    classpath 'com.google.gradle:osdetector-gradle-plugin:1.4.0'
  }
}

// Use the osdetector-gradle-plugin
apply plugin: "com.google.osdetector"

dependencies {
  compile 'org.conscrypt:conscrypt-openjdk:2.9.0:' + osdetector.classifier
}

Uber JAR

For convenience, we also publish an Uber JAR to Maven Central that contains the shared libraries for all of the published platforms. While the overall size of the JAR is larger than depending on a platform-specific artifact, it greatly simplifies the task of dependency management for most platforms.

To depend on the uber jar, simply use the conscrypt-openjdk-uber artifacts.

Maven
<dependency>
  <groupId>org.conscrypt</groupId>
  <artifactId>conscrypt-openjdk-uber</artifactId>
  <version>2.9.0</version>
</dependency>
Gradle
dependencies {
  compile 'org.conscrypt:conscrypt-openjdk-uber:2.9.0'
}

Android

The Android AAR file contains native libraries for x86, x86_64, armeabi-v7a, and arm64-v8a.

Gradle

dependencies {
  implementation 'org.conscrypt:conscrypt-android:2.9.0'
}

How to Build

If you are making changes to Conscrypt, see the building instructions.

About

Conscrypt is a Java Security Provider that implements parts of the Java Cryptography Extension and Java Secure Socket Extension.

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

1.4k stars

Watchers

66 watching

Forks

329 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.