Skip to content

Instantly share code, notes, and snippets.

@jaykhimani
jaykhimani / cert-keystore-commands.md
Created January 23, 2024 18:26
Handy command related to certificates and keystores
  • Create a local certificate authority
    keytool -genkeypair -v \
      -alias localca \
      -keystore identity.jks \
      -keyalg RSA \
      -keysize 4096 \
      -storepass changeme \
      -keypass changeme \

-validity 3650 \

@jaykhimani
jaykhimani / LoggerExtension.java
Last active December 31, 2022 23:29
JUnit 5 Extension To Verify logging
package com.jak.sandbox;
import java.util.List;
import org.junit.jupiter.api.extension.AfterEachCallback;
import org.junit.jupiter.api.extension.BeforeEachCallback;
import org.junit.jupiter.api.extension.ExtensionContext;
import org.slf4j.LoggerFactory;
import ch.qos.logback.classic.Level;
@jaykhimani
jaykhimani / .gitignore
Created January 11, 2016 23:36
My global .gitignore
.DS_Store
.idea
*.iml
target