Skip to content

Instantly share code, notes, and snippets.

View softarts's full-sized avatar

ZzzRrr softarts

  • TODO
  • Singapore
View GitHub Profile
@softarts
softarts / getRestTemplate.kt
Created July 14, 2022 13:20
mTLS: use Client certificate
import java.security.KeyFactory
import java.security.PrivateKey
import java.security.cert.Certificate
import java.security.cert.CertificateFactory
import java.security.interfaces.RSAPublicKey
import java.security.spec.PKCS8EncodededKeySpec
import java.security.spec.X509EncodededKeySpec
import java.util.Base64
import java.io.BufferedInputStream
@softarts
softarts / main.tf
Last active April 10, 2022 04:19
terraform-rds
terraform {
required_version = ">= 1.0.0, < 2.0.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
}
}