Skip to content

Instantly share code, notes, and snippets.

View Dabsunter's full-sized avatar
🍻
Coroned

David Dabsunter

🍻
Coroned
View GitHub Profile
@aantron
aantron / fragment of java.cpp
Created January 9, 2017 18:09
Java classes inlined into object file, plus loader
// This function calls the JNI routine DefineClass for each class in the
// in-memory class table (see java-classes.h). The class loader parameter passed
// to define class is the result of calling ClassLoader.getSystemClassLoader().
jthrowable java_load_classes()
{
JNIEnv *environment;
jclass class_loader;
jmethodID get_system_loader;
jobject system_loader;
jthrowable exception;
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active July 15, 2024 09:31
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096