Skip to content

Instantly share code, notes, and snippets.

View lenosi's full-sized avatar
🏠
Working from home

Dominik Lenosi lenosi

🏠
Working from home
View GitHub Profile
@lenosi
lenosi / CertificateValidityX509TrustManager.java
Last active February 27, 2023 13:03
Custom implementation of the javax.net.ssl.X509TrustManager interface, which is responsible for verifying the authenticity of SSL/TLS certificates in Java applications. The CertificateValidityX509TrustManager class provides a custom implementation of the checkClientTrusted and checkServerTrusted method, which is called by the TLS infrastructure …
import javax.net.ssl.X509TrustManager;
import java.security.cert.CertificateException;
import java.security.cert.CertificateExpiredException;
import java.security.cert.X509Certificate;
/**
* A custom implementation of the javax.net.ssl.X509TrustManager interface that includes a check for certificate validity.
* This implementation can be used to deny expired certificates and protect against attacks that rely on exploiting
* certificate validity periods.
*/
@lenosi
lenosi / example_output.yaml
Last active May 19, 2023 11:06
Scraper for ActiveMQ Artemis releases
2.28.0:
release_date: '2023-02-03'
jdk_compatibility: 11+
2.27.1:
release_date: '2022-12-01'
jdk_compatibility: 11+
2.27.0:
release_date: '2022-11-14'
jdk_compatibility: 11+
2.26.0: