func (c *Client) UpsertCertAuthority(ca services.CertAuthority, ttl time.Duration) error {
	if err := ca.Check(); err != nil {
		return trace.Wrap(err)
	}
	_, err := c.PostJSON(c.Endpoint("authorities", string(ca.Type)),
		upsertCertAuthorityReq{CA: ca, TTL: ttl})
	return trace.Wrap(err)
}
// UpsertCertAuthority updates or inserts new cert authority
UpsertCertAuthority updates or inserts new cert authority
// UpsertCertAuthority updates or inserts new cert authority
func (c *Client) UpsertCertAuthority(ca services.CertAuthority, ttl time.Duration) error {
	if err := ca.Check(); err != nil {
		return trace.Wrap(err)
	}
	_, err := c.PostJSON(c.Endpoint("authorities", string(ca.Type)),
		upsertCertAuthorityReq{CA: ca, TTL: ttl})
	return trace.Wrap(err)
}
func ( c * Client ) UpsertCertAuthority ( ca services . CertAuthority , ttl time . Duration ) error { if err := ca . Check ( ) ; err != nil { return trace . Wrap ( err ) } _ , err := c . PostJSON ( c . Endpoint ( " " , string ( ca . Type ) ) , upsertCertAuthorityReq { CA : ca , TTL : ttl } ) return trace . Wrap ( err ) }
UpsertCertAuthority updates or inserts new cert authority
UpsertCertAuthority updates or inserts new cert authority