Jakob Borg 8f3effed32 Refactor node ID handling, use check digits (fixes #269)
New node ID:s contain four Luhn check digits and are grouped
differently. Code uses NodeID type instead of string, so it's formatted
homogenously everywhere.
2014-06-30 01:42:03 +02:00

17 lines
407 B
Go

// Copyright (C) 2014 Jakob Borg and other contributors. All rights reserved.
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.
package main
import (
"crypto/tls"
"path/filepath"
)
func loadCert(dir string) (tls.Certificate, error) {
cf := filepath.Join(dir, "cert.pem")
kf := filepath.Join(dir, "key.pem")
return tls.LoadX509KeyPair(cf, kf)
}