// Certificate returns the server or client certificate from the sign response.
Certificate returns the server or client certificate from the sign response.
// Certificate returns the server or client certificate from the sign response .
func Certificate(sign *api.SignResponse) (*x509.Certificate, error) {
	if sign.ServerPEM.Certificate == nil {
		return nil, errors.New("ca: certificate does not exist")
	}
	return sign.ServerPEM.Certificate, nil
}
func Certificate ( sign * api . SignResponse ) ( * x509 . Certificate , error ) { if sign . ServerPEM . Certificate == nil { return nil , errors . New ( " " ) } return sign . ServerPEM . Certificate , nil }
Certificate returns the server or client certificate from the sign response.
Certificate returns the server or client certificate from the sign response .