()
| 495 | } |
| 496 | |
| 497 | func (cfg RPCConfig) KeyFile() string { |
| 498 | path := cfg.TLSKeyFile |
| 499 | if filepath.IsAbs(path) { |
| 500 | return path |
| 501 | } |
| 502 | return rootify(filepath.Join(defaultConfigDir, path), cfg.RootDir) |
| 503 | } |
| 504 | |
| 505 | func (cfg RPCConfig) CertFile() string { |
| 506 | path := cfg.TLSCertFile |