-
-
Save qmilangowin/848e499270ee5a27edabde8b851b9eb2 to your computer and use it in GitHub Desktop.
Revisions
-
denji revised this gist
Apr 4, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ # Moved to git repository: https://github.com/denji/golang-tls ##### Generate private key (.key) -
denji revised this gist
Nov 30, 2017 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -196,15 +196,15 @@ func main() { #### Generation of self-sign a certificate with a private (`.key`) and public key (PEM-encodings `.pem`|`.crt`) in one command: ```sh # ECDSA recommendation key ≥ secp384r1 # List ECDSA the supported curves (openssl ecparam -list_curves) openssl req -x509 -nodes -newkey ec:secp384r1 -keyout server.ecdsa.key -out server.ecdsa.crt -days 3650 # openssl req -x509 -nodes -newkey ec:<(openssl ecparam -name secp384r1) -keyout server.ecdsa.key -out server.ecdsa.crt -days 3650 # -pkeyopt ec_paramgen_curve:… / ec:<(openssl ecparam -name …) / -newkey ec:… ln -sf server.ecdsa.key server.key ln -sf server.ecdsa.crt server.crt # RSA recommendation key ≥ 2048-bit openssl req -x509 -nodes -newkey rsa:2048 -keyout server.rsa.key -out server.rsa.crt -days 3650 ln -sf server.rsa.key server.key ln -sf server.rsa.crt server.crt -
denji revised this gist
Apr 15, 2017 . 1 changed file with 11 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -231,14 +231,17 @@ ECDSA & RSA — FAQ CA Bundle Path --- | Distro | Package | Path to CA | |-------------------------------------------------------------- |----------------- |------------------------------------------ | | Fedora, RHEL, CentOS | ca-certificates | /etc/pki/tls/certs/ca-bundle.crt | | Debian, Ubuntu, Gentoo, Arch Linux | ca-certificates | /etc/ssl/certs/ca-certificates.crt | | SUSE, openSUSE | ca-certificates | /etc/ssl/ca-bundle.pem | | FreeBSD | ca_root_nss | /usr/local/share/certs/ca-root-nss.crt | | Cygwin | - | /usr/ssl/certs/ca-bundle.crt | | macOS (MacPorts) | curl-ca-bundle | /opt/local/share/curl/curl-ca-bundle.crt | | Default cURL CA bunde path (without --with-ca-bundle option) | | /usr/local/share/curl/curl-ca-bundle.crt | | Really old RedHat? | | /usr/share/ssl/certs/ca-bundle.crt | Reference Link --- -
denji revised this gist
Mar 18, 2017 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,5 @@ ### Moved to git repository: https://github.com/denji/golang-tls ##### Generate private key (.key) ```sh -
denji revised this gist
Feb 16, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -255,7 +255,7 @@ Reference Link * [The complete guide to Go net/http timeouts – `blog.cloudflare.com`](https://blog.cloudflare.com/the-complete-guide-to-golang-net-http-timeouts/) * [Certificate fetcher in Go – `gist.github.com`](https://gist.github.com/jtwaleson/1fdd77260bcb48377b6b) * [How to redirect HTTP to HTTPS with a golang webserver – `gist.github.com`](https://gist.github.com/d-schmidt/587ceec34ce1334a5e60) * __[XCA - X Certificate and key management](https://sourceforge.net/projects/xca/)__ * Package [tcplisten](https://github.com/valyala/tcplisten) provides customizable TCP `net.Listener` with various performance-related options * https://github.com/bifurcation/mint — minimal TLS 1.3 Implementation in Go * https://github.com/cloudflare/tls-tris — crypto/tls, now with 100% more 1.3 -
denji revised this gist
Feb 16, 2017 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -210,7 +210,7 @@ ln -sf server.rsa.crt server.crt * `.crt` — Alternate synonymous most common among *nix systems `.pem` (pubkey). * `.csr` — Certficate Signing Requests (synonymous most common among *nix systems). * `.cer` — Microsoft alternate form of `.crt`, you can use MS to convert `.crt` to `.cer` (`DER` encoded `.cer`, or `base64[PEM]` encoded `.cer`). * `.pem` = The PEM extension is used for different types of X.509v3 files which contain ASCII (Base64) armored data prefixed with a «—– BEGIN …» line. These files may also bear the `cer` or the `crt` extension. * `.der` — The DER extension is used for binary DER encoded certificates. @@ -240,10 +240,10 @@ CA Bundle Path Reference Link --- * ~~[Achieving a Perfect SSL Labs Score with Go – `blog.bracelab.com`](https://web.archive.org/web/20160520182043/https://blog.bracelab.com/achieving-perfect-ssl-labs-score-with-go)~~ * [OpenSSL without prompt – `superuser.com` (Stack Exchange)](http://superuser.com/a/226229/205366) * [TLS server and client — `gist.github.com/spikebike`](https://gist.github.com/spikebike/2232102) * ~~[Echo, a fast and unfancy micro web framework for Go — `echo.labstack.com/guide`](https://web.archive.org/web/20150925030955/http://echo.labstack.com/guide)~~ * https://kjur.github.io/jsrsasign/sample-ecdsa.html * [Creating Self-Signed ECDSA SSL Certificate using OpenSSL – `guyrutenberg.com`](https://www.guyrutenberg.com/2013/12/28/creating-self-signed-ecdsa-ssl-certificate-using-openssl/) * https://www.openssl.org/docs/manmaster/ -
denji revised this gist
Jan 19, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -257,13 +257,13 @@ Reference Link * [How to redirect HTTP to HTTPS with a golang webserver – `gist.github.com`](https://gist.github.com/d-schmidt/587ceec34ce1334a5e60) * [XCA - X Certificate and key management](https://sourceforge.net/projects/xca/) * Package [tcplisten](https://github.com/valyala/tcplisten) provides customizable TCP `net.Listener` with various performance-related options * https://github.com/bifurcation/mint — minimal TLS 1.3 Implementation in Go * https://github.com/cloudflare/tls-tris — crypto/tls, now with 100% more 1.3 * https://github.com/Xeoncross/secureserver * https://github.com/cloudflare/cfssl * https://github.com/google/certificate-transparency * https://cipherli.st/ * https://github.com/cmrunton/tls-dashboard — dashboard written in JavaScript & HTML to check the remaining time before a TLS certificate expires. * https://github.com/tomato42/tlsfuzzer * https://github.com/mozilla/tls-observatory (https://observatory.mozilla.org/) * https://dev.ssllabs.com/ssltest/ -
denji revised this gist
Jan 19, 2017 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -258,6 +258,7 @@ Reference Link * [XCA - X Certificate and key management](https://sourceforge.net/projects/xca/) * Package [tcplisten](https://github.com/valyala/tcplisten) provides customizable TCP `net.Listener` with various performance-related options * https://github.com/bifurcation/mint — A Minimal TLS 1.3 Implementation in Go * https://github.com/cloudflare/tls-tris — crypto/tls, now with 100% more 1.3 * https://github.com/Xeoncross/secureserver * https://github.com/cloudflare/cfssl * https://github.com/google/certificate-transparency -
denji revised this gist
Jan 19, 2017 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -257,14 +257,17 @@ Reference Link * [How to redirect HTTP to HTTPS with a golang webserver – `gist.github.com`](https://gist.github.com/d-schmidt/587ceec34ce1334a5e60) * [XCA - X Certificate and key management](https://sourceforge.net/projects/xca/) * Package [tcplisten](https://github.com/valyala/tcplisten) provides customizable TCP `net.Listener` with various performance-related options * https://github.com/bifurcation/mint — A Minimal TLS 1.3 Implementation in Go * https://github.com/Xeoncross/secureserver * https://github.com/cloudflare/cfssl * https://github.com/google/certificate-transparency * https://cipherli.st/ * https://github.com/cmrunton/tls-dashboard * https://github.com/tomato42/tlsfuzzer * https://github.com/mozilla/tls-observatory (https://observatory.mozilla.org/) * https://dev.ssllabs.com/ssltest/ * https://indieweb.org/HTTPS * https://github.com/konklone/shaaaaaaaaaaaaa (https://shaaaaaaaaaaaaa.com/) * https://securityheaders.io/ * https://testssl.sh/ * https://github.com/nabla-c0d3/sslyze -
denji revised this gist
Jan 19, 2017 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -258,8 +258,10 @@ Reference Link * [XCA - X Certificate and key management](https://sourceforge.net/projects/xca/) * Package [tcplisten](https://github.com/valyala/tcplisten) provides customizable TCP `net.Listener` with various performance-related options * https://github.com/Xeoncross/secureserver * https://github.com/cloudflare/cfssl * https://github.com/google/certificate-transparency * https://cipherli.st/ * https://github.com/mozilla/tls-observatory (https://observatory.mozilla.org/) * https://dev.ssllabs.com/ssltest/ * https://indieweb.org/HTTPS * https://shaaaaaaaaaaaaa.com/ -
denji revised this gist
Jan 19, 2017 . 1 changed file with 7 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -265,4 +265,11 @@ Reference Link * https://shaaaaaaaaaaaaa.com/ * https://securityheaders.io/ * https://testssl.sh/ * https://github.com/nabla-c0d3/sslyze * https://github.com/iSECPartners/sslyze * https://github.com/mozilla/cipherscan * https://github.com/ssllabs/ssllabs-scan * https://github.com/chromium/badssl.com (https://badssl.com) * https://github.com/datatheorem/TrustKit * https://github.com/certifi/gocertifi * … -
denji revised this gist
Jan 19, 2017 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -262,3 +262,7 @@ Reference Link * https://observatory.mozilla.org/ * https://dev.ssllabs.com/ssltest/ * https://indieweb.org/HTTPS * https://shaaaaaaaaaaaaa.com/ * https://securityheaders.io/ * https://testssl.sh/ * … -
denji revised this gist
Jan 19, 2017 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -261,3 +261,4 @@ Reference Link * https://cipherli.st/ * https://observatory.mozilla.org/ * https://dev.ssllabs.com/ssltest/ * https://indieweb.org/HTTPS -
denji revised this gist
Jan 19, 2017 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -259,3 +259,5 @@ Reference Link * Package [tcplisten](https://github.com/valyala/tcplisten) provides customizable TCP `net.Listener` with various performance-related options * https://github.com/Xeoncross/secureserver * https://cipherli.st/ * https://observatory.mozilla.org/ * https://dev.ssllabs.com/ssltest/ -
denji revised this gist
Jan 10, 2017 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -258,3 +258,4 @@ Reference Link * [XCA - X Certificate and key management](https://sourceforge.net/projects/xca/) * Package [tcplisten](https://github.com/valyala/tcplisten) provides customizable TCP `net.Listener` with various performance-related options * https://github.com/Xeoncross/secureserver * https://cipherli.st/ -
denji revised this gist
Dec 27, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -257,3 +257,4 @@ Reference Link * [How to redirect HTTP to HTTPS with a golang webserver – `gist.github.com`](https://gist.github.com/d-schmidt/587ceec34ce1334a5e60) * [XCA - X Certificate and key management](https://sourceforge.net/projects/xca/) * Package [tcplisten](https://github.com/valyala/tcplisten) provides customizable TCP `net.Listener` with various performance-related options * https://github.com/Xeoncross/secureserver -
denji revised this gist
Dec 27, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -256,3 +256,4 @@ Reference Link * [Certificate fetcher in Go – `gist.github.com`](https://gist.github.com/jtwaleson/1fdd77260bcb48377b6b) * [How to redirect HTTP to HTTPS with a golang webserver – `gist.github.com`](https://gist.github.com/d-schmidt/587ceec34ce1334a5e60) * [XCA - X Certificate and key management](https://sourceforge.net/projects/xca/) * Package [tcplisten](https://github.com/valyala/tcplisten) provides customizable TCP `net.Listener` with various performance-related options -
denji revised this gist
Dec 18, 2016 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -9,8 +9,6 @@ openssl genrsa -out server.key 2048 openssl ecparam -genkey -name secp384r1 -out server.key ``` ##### Generation of self-signed(x509) public key (PEM-encodings `.pem`|`.crt`) based on the private (`.key`) ```sh -
denji revised this gist
Dec 18, 2016 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -9,6 +9,8 @@ openssl genrsa -out server.key 2048 openssl ecparam -genkey -name secp384r1 -out server.key ``` > OpenSSL 1.0.2+ support RSA/ECC - Dual Mode ##### Generation of self-signed(x509) public key (PEM-encodings `.pem`|`.crt`) based on the private (`.key`) ```sh -
denji revised this gist
Dec 17, 2016 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -255,3 +255,4 @@ Reference Link * [The complete guide to Go net/http timeouts – `blog.cloudflare.com`](https://blog.cloudflare.com/the-complete-guide-to-golang-net-http-timeouts/) * [Certificate fetcher in Go – `gist.github.com`](https://gist.github.com/jtwaleson/1fdd77260bcb48377b6b) * [How to redirect HTTP to HTTPS with a golang webserver – `gist.github.com`](https://gist.github.com/d-schmidt/587ceec34ce1334a5e60) * [XCA - X Certificate and key management](https://sourceforge.net/projects/xca/) -
denji revised this gist
Dec 17, 2016 . 1 changed file with 4 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -208,9 +208,11 @@ ln -sf server.rsa.key server.key ln -sf server.rsa.crt server.crt ``` * `.crt` — Alternate synonymous most common among *nix systems `.pem` (pubkey). * `.csr` — Certficate Signing Requests (synonymous most common among *nix systems). * `.cer` — Microsoft alternate form of `.crt`, you can use MS to convert `.crt` to `.cer` (`DER` encoded `.cer`, or `base64[PEM]` encoded `.cer`. * `.pem` = The PEM extension is used for different types of X.509v3 files which contain ASCII (Base64) armored data prefixed with a «—– BEGIN …» line. These files may also bear the `cer` or the `crt` extension. * `.der` — The DER extension is used for binary DER encoded certificates. #### Generating the Certficate Signing Request -
denji revised this gist
Dec 17, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -12,7 +12,7 @@ openssl ecparam -genkey -name secp384r1 -out server.key ##### Generation of self-signed(x509) public key (PEM-encodings `.pem`|`.crt`) based on the private (`.key`) ```sh openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650 ``` --- -
denji revised this gist
Dec 17, 2016 . 1 changed file with 32 additions and 32 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ ```sh # Key considerations for algorithm "RSA" ≥ 2048-bit openssl genrsa -out server.key 2048 # Key considerations for algorithm "ECDSA" ≥ secp384r1 # List ECDSA the supported curves (openssl ecparam -list_curves) openssl ecparam -genkey -name secp384r1 -out server.key @@ -12,7 +12,7 @@ openssl ecparam -genkey -name secp384r1 -out server.key ##### Generation of self-signed(x509) public key (PEM-encodings `.pem`|`.crt`) based on the private (`.key`) ```sh openssl req -new -x509 -sha256 -key server.key -out server.csr -days 3650 ``` --- @@ -159,35 +159,35 @@ func main() { package main import ( "crypto/tls" "log" "net/http" ) func main() { mux := http.NewServeMux() mux.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) { w.Header().Add("Strict-Transport-Security", "max-age=63072000; includeSubDomains") w.Write([]byte("This is an example server.\n")) }) cfg := &tls.Config{ MinVersion: tls.VersionTLS12, CurvePreferences: []tls.CurveID{tls.CurveP521, tls.CurveP384, tls.CurveP256}, PreferServerCipherSuites: true, CipherSuites: []uint16{ tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, tls.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, tls.TLS_RSA_WITH_AES_256_GCM_SHA384, tls.TLS_RSA_WITH_AES_256_CBC_SHA, }, } srv := &http.Server{ Addr: ":443", Handler: mux, TLSConfig: cfg, TLSNextProto: make(map[string]func(*http.Server, *tls.Conn, http.Handler), 0), } log.Fatal(srv.ListenAndServeTLS("tls.crt", "tls.key")) } ``` @@ -200,17 +200,17 @@ openssl req -x509 -nodes -newkey ec:secp384r1 -keyout server.ecdsa.key -out serv # -pkeyopt ec_paramgen_curve:… / ec:<(openssl ecparam -name …) / -newkey ec:… ln -sf server.ecdsa.key server.key ln -sf server.ecdsa.crt server.crt # ECDSA recommendation key ≥ secp384r1 # List ECDSA the supported curves (openssl ecparam -list_curves) openssl req -x509 -nodes -newkey rsa:2048 -keyout server.rsa.key -out server.rsa.crt -days 3650 ln -sf server.rsa.key server.key ln -sf server.rsa.crt server.crt ``` * `.crt` (synonymous most common among *nix systems) * `.der` — The DER extension is used for binary DER encoded certificates. * `.pem` = The PEM extension is used for different types of X.509v3 files which contain ASCII (Base64) armored data prefixed with a «—– BEGIN …» line. #### Generating the Certficate Signing Request -
denji revised this gist
Dec 17, 2016 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -227,12 +227,12 @@ ECDSA & RSA — FAQ CA Bundle Path --- * `/etc/pki/tls/certs/ca-bundle.crt` — `Fedora`, `RHEL`, `CentOS` (`ca-certificates` package) * `/etc/ssl/certs/ca-certificates.crt` — `Debian`, `Ubuntu`, `Gentoo`, `Arch Linux` (`ca-certificates` package) * `/etc/ssl/ca-bundle.pem` — `SUSE`, `openSUSE` (`ca-certificates` package) * `/usr/local/share/certs/ca-root-nss.crt` — `FreeBSD` (`ca_root_nss` package) * `/usr/ssl/certs/ca-bundle.crt` — `Cygwin` * `/opt/local/share/curl/curl-ca-bundle.crt` — `macOS macports` (`curl-ca-bundle` package) * `/usr/local/share/curl/curl-ca-bundle.crt` — Default cURL CA bunde path (without `--with-ca-bundle` option) * `/usr/share/ssl/certs/ca-bundle.crt` — `Really old RedHat?` -
denji revised this gist
Dec 17, 2016 . 1 changed file with 11 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -225,6 +225,17 @@ ECDSA & RSA — FAQ * Conversion form to compressed "ECDSA" `-conv_form compressed` * "EC" parameters and a private key `-genkey` CA Bundle Path --- * `/etc/pki/tls/certs/ca-bundle.crt` — `Fedora`, `RHEL`, `CentOS` (ca-certificates package) * `/etc/ssl/certs/ca-certificates.crt` — `Debian`, `Ubuntu`, `Gentoo`, `Arch Linux` (ca-certificates package) * `/etc/ssl/ca-bundle.pem` — `SUSE`, `openSUSE` (ca-certificates package) * `/usr/local/share/certs/ca-root-nss.crt` — `FreeBSD` (ca_root_nss_package) * `/usr/ssl/certs/ca-bundle.crt` — `Cygwin` * `/opt/local/share/curl/curl-ca-bundle.crt` — `macOS macports`, `curl-ca-bundle` package * `/usr/local/share/curl/curl-ca-bundle.crt` — Default cURL CA bunde path (without `--with-ca-bundle` option) * `/usr/share/ssl/certs/ca-bundle.crt` — `Really old RedHat?` Reference Link --- * [Achieving a Perfect SSL Labs Score with Go – `blog.bracelab.com`](https://blog.bracelab.com/achieving-perfect-ssl-labs-score-with-go) -
denji revised this gist
Dec 6, 2016 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -125,9 +125,9 @@ import ( func main() { log.SetFlags(log.Lshortfile) conf := &tls.Config{ //InsecureSkipVerify: true, } conn, err := tls.Dial("tcp", "127.0.0.1:443", conf) if err != nil { -
denji revised this gist
Dec 6, 2016 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -125,9 +125,9 @@ import ( func main() { log.SetFlags(log.Lshortfile) // conf := &tls.Config{ // InsecureSkipVerify: true, // } conn, err := tls.Dial("tcp", "127.0.0.1:443", conf) if err != nil { -
denji revised this gist
Dec 6, 2016 . 1 changed file with 4 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -233,9 +233,10 @@ Reference Link * [Echo, a fast and unfancy micro web framework for Go — `echo.labstack.com/guide`](https://web.archive.org/web/20150925030955/http://echo.labstack.com/guide) * https://kjur.github.io/jsrsasign/sample-ecdsa.html * [Creating Self-Signed ECDSA SSL Certificate using OpenSSL – `guyrutenberg.com`](https://www.guyrutenberg.com/2013/12/28/creating-self-signed-ecdsa-ssl-certificate-using-openssl/) * https://www.openssl.org/docs/manmaster/ * https://www.openssl.org/docs/manmaster/man1/ecparam.html * https://www.openssl.org/docs/manmaster/man1/ec.html * https://www.openssl.org/docs/manmaster/man1/req.html * https://digitalelf.net/2016/02/creating-ssl-certificates-in-3-easy-steps/ * [HTTPS and Go – `kaihag.com`](http://www.kaihag.com/https-and-go/) * [The complete guide to Go net/http timeouts – `blog.cloudflare.com`](https://blog.cloudflare.com/the-complete-guide-to-golang-net-http-timeouts/) -
denji revised this gist
Dec 6, 2016 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -233,9 +233,9 @@ Reference Link * [Echo, a fast and unfancy micro web framework for Go — `echo.labstack.com/guide`](https://web.archive.org/web/20150925030955/http://echo.labstack.com/guide) * https://kjur.github.io/jsrsasign/sample-ecdsa.html * [Creating Self-Signed ECDSA SSL Certificate using OpenSSL – `guyrutenberg.com`](https://www.guyrutenberg.com/2013/12/28/creating-self-signed-ecdsa-ssl-certificate-using-openssl/) * https://www.openssl.org/docs/manmaster/man1/ecparam.html * https://www.openssl.org/docs/manmaster/man1/ec.html * https://www.openssl.org/docs/manmaster/man1/req.html * https://digitalelf.net/2016/02/creating-ssl-certificates-in-3-easy-steps/ * [HTTPS and Go – `kaihag.com`](http://www.kaihag.com/https-and-go/) * [The complete guide to Go net/http timeouts – `blog.cloudflare.com`](https://blog.cloudflare.com/the-complete-guide-to-golang-net-http-timeouts/) -
denji revised this gist
Nov 17, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -48,7 +48,7 @@ func main() { Hint: visit, please do not forget to use https begins,otherwise chrome will download a file as follows: ```bash $ curl -sL https://localhost:443 | xxd 0000000: 1503 0100 0202 0a ....... ```
NewerOlder