Skip to content

Instantly share code, notes, and snippets.

View XiongLiding's full-sized avatar

XiongLiding XiongLiding

View GitHub Profile
@Hakky54
Hakky54 / curl-with-java-keystore.md
Last active April 29, 2024 19:12
Curl with Java KeyStore

Curl with Java KeyStore

Curl doesn't have support for java keystore file, so therefor the file should be converted to a PEM format. It consists of the following multiple steps:

  1. Convert keystore to p12 file
  2. Convert p12 file to pem file
  3. Run curl command with pem files

One way TLS/SSL/Authentication

Convert keystore to p12 file

@kitek
kitek / gist:1579117
Created January 8, 2012 17:50
NodeJS create md5 hash from string
var data = "do shash'owania";
var crypto = require('crypto');
crypto.createHash('md5').update(data).digest("hex");