// GetClientTLSConfig returns a tls.Config for client use configured with the
// sign certificate, and a new certificate pool with the sign root certificate.
// The client certificate will automatically rotate before expiring.
GetClientTLSConfig returns a tls.Config for client use configured with the
sign certificate, and a new certificate pool with the sign root certificate.
The client certificate will automatically rotate before expiring.
// GetClientTLSConfig returns a tls . Config for client use configured with the // sign certificate and a new certificate pool with the sign root certificate . // The client certificate will automatically rotate before expiring .
func (c *Client) GetClientTLSConfig(ctx context.Context, sign *api.SignResponse, pk crypto.PrivateKey, options ...TLSOption) (*tls.Config, error) {
	tlsConfig, _, err := c.getClientTLSConfig(ctx, sign, pk, options)
	if err != nil {
		return nil, err
	}
	return tlsConfig, nil
}
func ( c * Client ) GetClientTLSConfig ( ctx context . Context , sign * api . SignResponse , pk crypto . PrivateKey , options ... TLSOption ) ( * tls . Config , error ) { tlsConfig , _ , err := c . getClientTLSConfig ( ctx , sign , pk , options ) if err != nil { return nil , err } return tlsConfig , nil }
GetClientTLSConfig returns a tls.Config for client use configured with the
sign certificate, and a new certificate pool with the sign root certificate.
GetClientTLSConfig returns a tls . Config for client use configured with the sign certificate and a new certificate pool with the sign root certificate .