Skip to content

Instantly share code, notes, and snippets.

View rsoika's full-sized avatar
💥
Working on Jakarta EE9 migration

Ralph Soika rsoika

💥
Working on Jakarta EE9 migration
View GitHub Profile
@vivekkr12
vivekkr12 / BouncyCastleCertificateGenerator.java
Last active April 17, 2024 10:03
Generate root X509Certificate, Sign a Certificate from the root certificate by generating a CSR (Certificate Signing Request) and save the certificates to a keystore using BouncyCastle 1.5x
import org.bouncycastle.asn1.ASN1Encodable;
import org.bouncycastle.asn1.DERSequence;
import org.bouncycastle.asn1.x500.X500Name;
import org.bouncycastle.asn1.x509.BasicConstraints;
import org.bouncycastle.asn1.x509.Extension;
import org.bouncycastle.asn1.x509.GeneralName;
import org.bouncycastle.asn1.x509.KeyUsage;
import org.bouncycastle.cert.X509CertificateHolder;
import org.bouncycastle.cert.X509v3CertificateBuilder;
import org.bouncycastle.cert.jcajce.JcaX509CertificateConverter;
@rsoika
rsoika / wildfly-install.sh
Last active January 27, 2017 10:31 — forked from sukharevd/wildfly-install.sh
Installation Script for Wildfly 10 on Linux
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 8.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :initial: Dmitriy Sukharev, changes:Ralph Soika
#date :20141129, 20141213
#changes :added arguments for installation dir and port offset
#usage :/bin/bash wildfly-install.sh [INSTALLDIR] [PORTOFFSET]
function usage
@sukharevd
sukharevd / wildfly-install.sh
Last active October 21, 2023 11:56
Script to install JBoss Wildfly 10.x as service in Linux
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 10.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :2016-06-18T02:45-0700
#usage :/bin/bash wildfly-install.sh
#tested-version1 :10.0.0.CR3
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22
#tested-version2 :10.0.0.Final