Skip to content

Instantly share code, notes, and snippets.

@dvas0004
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dvas0004/54a99a11e015ab6f1744 to your computer and use it in GitHub Desktop.
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
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