This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
###### For generate_certs.sh script ###### | |
export COUNTRY=US | |
export STATE=California | |
export CITY=Irvine | |
export ORGANIZATION=YourCompany | |
export UNIT=YourBU | |
export COMMON_NAME=server.example.com | |
export SAN_NAME_1=server.example.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" | |
"crypto/x509/pkix" | |
"encoding/pem" | |
"fmt" | |
"math/big" |