Install the OpenSSL on Debian based systems
sudo apt-get install openssl| # Ecrypted 4096-bit RSA private key | |
| openssl genrsa -des3 -out foo.key 4096 | |
| # How to Decrypt an RSA Private Key Using OpenSSL | |
| # openssl rsa -in .excluded/rsa/foo.key.encrypted -out .excluded/rsa/foo.key.decrypted | |
| # Certificate Signing Request by private key | |
| openssl req -key foo.key -new -out foo.csr | |
| # We can also create both the private key and CSR with a single command | |
| # openssl req -newkey rsa:4096 -keyout foo.key -out foo.csr |
| #!/usr/bin/env bash | |
| CA_PRIVATE_KEY='CA-private-key.key' | |
| CA_SUBJECT='/CN=Certificate authority/' | |
| CA_CERTIFICATE_SIGNING_REQUEST='CA-certificate-signing-request.csr' | |
| CA_SELF_SIGNED_CERTIFICATE='CA-self-signed-certificate.pem' | |
| SERVER_PRIVATE_KEY='Server-private-key.key' | |
| SERVER_SUBJECT='/CN=localhost/' | |
| SERVER_CERTIFICATE_SIGNING_REQUEST='Server-certificate-signing-request.csr' | |
| SERVER_CERTIFICATE='Server-certificate.pem' |
| #!/usr/bin/env bash | |
| # | |
| # Author: Stefan Buck | |
| # License: MIT | |
| # https://gist.github.com/stefanbuck/ce788fee19ab6eb0b4447a85fc99f447 | |
| # | |
| # | |
| # This script accepts the following parameters: | |
| # | |
| # * owner |
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| import javax.crypto.Cipher; | |
| import java.security.spec.KeySpec; | |
| import javax.crypto.spec.PBEKeySpec; | |
| import javax.crypto.SecretKey; | |
| import javax.crypto.spec.SecretKeySpec; | |
| import javax.crypto.SecretKeyFactory; | |
| import java.security.AlgorithmParameters; | |
| import javax.crypto.spec.IvParameterSpec; | |
| public class Decrypter { |