scottdware / go-bigip

A Go package that interacts with F5 BIG-IP systems using the REST API.
MIT License
108 stars 118 forks source link

How to import certificate and key? #103

Closed deepzz0 closed 5 years ago

deepzz0 commented 5 years ago

System -> certificate management -> traffic certificate management -> ssl certificate list -> import

but i don't know how to import certificate by rest api, need help, thanks.

deepzz0 commented 5 years ago

System -> certificate management -> traffic certificate management -> ssl certificate list -> import

but i don't know how to import certificate by rest api, need help, thanks.

Now, I can import certificates through the HTTP service.

    err = f5.AddCertificate(&bigip.Certificate{
        Name:       "henry_test2",
        SourcePath: "http://192.168.10.145:8090/etcd1.pem",
    })
    if err != nil {
        panic(err)
    }

it's not secure, I wanna to upload. What should I do.