Chapter 5 Advanced Expressions: Working with Dates, Times, and Numbers 109

Operations on Certificate (client.ssl.client_cert) Dates and Times

SSL Certificate Operation

Description

 

 

certificate.

Extracts the last second that the certificate is valid.

VALID_NOT_BEFORE.

Returns the current second as an integer from 0 to 59.

SECONDS

 

 

certificate.

Extracts the last weekday that the certificate is valid.

VALID_NOT_BEFORE.

Returns the weekday as a number between 0 (Sunday)

WEEKDAY

and 6 (Saturday).

certificate.

Returns a Boolean TRUE if each element of time exists

VALID_NOT_BEFORE.

within the range defined in the time1, time2 arguments.

WITHIN(time1, time2)

If you omit an element of time from time1, it is assumed

 

to have the lowest value in its range. If you omit an

 

element of time from time2, it is assumed to have the

 

highest value in its range. If you specify a year in time1,

 

it must be specified in time2. The ranges for elements of

 

time are as follows: month 1-12, day 1-31, weekday 0-

 

6, hour 0-23, minutes 0-59 and seconds 0-59.

 

For example, if the time is GMT 2005 May 10 10h 15m

 

30s, and it is the second Tuesday of the month, you can

 

specify the following (evaluation results are in

 

parentheses):

 

. . .within(GMT 2004, GMT 2006)

 

 

(TRUE)

 

. . .within(GMT 2004 Jan, GMT 2006

 

 

Mar) (FALSE, May is not in the range of January

 

 

to March.)

 

. . .within(GMT Feb, GMT) (TRUE, May

 

 

is in the range of February to December.)

 

. . .within(GMT Sun_1, GMT Sun_3)

 

 

(TRUE, the second Tuesday is between the first

 

 

Sunday and the third Sunday.)

 

. . .within(GMT 2005 May 1 10h, GMT

 

 

May 2005 1 17h) (TRUE)

 

. . .within(LOCAL 2005 May 1, LOCAL

 

 

May 2005 1) (TRUE or FALSE, depending on

 

 

the NetScaler system time zone)

certificate.

Extracts the last year that the certificate is valid. Returns

VALID_NOT_BEFORE.YEAR

the current year as a four-digit integer.

Page 123
Image 123
Citrix Systems 9.2 Extracts the last second that the certificate is valid, Saturday, Hour 0-23, minutes 0-59 and seconds