Skip to content

Instantly share code, notes, and snippets.

KnightW Knight-Wu

Block or report user

Report or block Knight-Wu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@artyom
artyom / rpc-tls-client.go
Last active Sep 30, 2019
Go RPC over TLS.You have to create the following keys: certs/client.crt, certs/client.key, certs/server.crt, certs/server.key. client.crt and server.crt should be signed with ca.crt, which should be concatenated to both client.crt and server.crt. It's easier to do with easy-rsa: http://openvpn.net/index.php/open-source/documentation/howto.html#pki
View rpc-tls-client.go
package main
import (
"crypto/tls"
"crypto/x509"
"log"
"net/rpc"
)
func main() {
You can’t perform that action at this time.