mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-30 18:23:35 +08:00
seclib2: add doc describing the protocol on removal of tmpfile
This commit is contained in:
@@ -24,6 +24,10 @@ const (
|
||||
certBeginString = "BEGIN CERTIFICATE"
|
||||
)
|
||||
|
||||
// MergeCaCertFiles concatenates cert and ca file to form a chain, write it to
|
||||
// a tmpfile then return the path
|
||||
//
|
||||
// Callers are responsible for removing the returned tmpfile
|
||||
func MergeCaCertFiles(cafile string, certfile string) (string, error) {
|
||||
tmpfile, err := ioutil.TempFile("", "cerfile.*.crt")
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user