Skip to content

Instantly share code, notes, and snippets.

@dvas0004
Last active Aug 29, 2015
Embed
What would you like to do?
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