Last active
August 29, 2015 14:23
-
-
Save dvas0004/54a99a11e015ab6f1744 to your computer and use it in GitHub Desktop.
tls_common - certificate and key for embedded TLS server, see http://blog.davidvassallo.me/?p=1650
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 tls_common | |
/* | |
IMPORTANT: due to golang's encapsulation directives, variables in this file MUST start with a capital letter, else | |
they will not be visible from other packages | |
reference: http://golangtutorials.blogspot.com/2011/06/structs-in-go-instead-of-classes-in.html | |
*/ | |
/* | |
The following SSL/TLS certificate and key were generated for the embedded TLS server, by following the procedure | |
outlined here: | |
http://www.akadia.com/services/ssh_test_certificate.html | |
*/ | |
var WebserverCertificate = `-----BEGIN CERTIFICATE----- | |
MIID... | |
-----END CERTIFICATE-----` | |
var WebserverPrivateKey = `-----BEGIN RSA PRIVATE KEY----- | |
MII... | |
-----END RSA PRIVATE KEY-----` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment