| 1 |
Value Required CERTIFICATE_TYPE ([CA]*\s*Certificate) |
| 2 |
Value STATUS ([\s\S]+?) |
| 3 |
Value SERIAL_NUMBER (\S+) |
| 4 |
Value CERTIFICATE_USAGE ([\s\S]+?) |
| 5 |
Value ISSUER_E (\S+) |
| 6 |
Value ISSUER_CN ([\s\S]+) |
| 7 |
Value ISSUER_OU ([\s\S]+) |
| 8 |
Value ISSUER_O ([\s\S]+) |
| 9 |
Value ISSUER_L ([\s\S]+) |
| 10 |
Value ISSUER_ST ([\s\S]+) |
| 11 |
Value ISSUER_C ([\s\S]+) |
| 12 |
Value SUBJECT_E (\S+) |
| 13 |
Value SUBJECT_CN ([\s\S]+) |
| 14 |
Value SUBJECT_OU ([\s\S]+) |
| 15 |
Value SUBJECT_O ([\s\S]+) |
| 16 |
Value SUBJECT_L ([\s\S]+) |
| 17 |
Value SUBJECT_ST ([\s\S]+) |
| 18 |
Value SUBJECT_C ([\s\S]+) |
| 19 |
Value SUBJECT_NAME (\S+) |
| 20 |
Value SUBJECT_SERIAL_NUMBER (\S+) |
| 21 |
Value SUBJECT_HOSTNAME (\S+) |
| 22 |
Value CRL_DISTRIBUTION_POINT (\S+) |
| 23 |
Value START_DATE ([\s\S]+?) |
| 24 |
Value END_DATE ([\s\S]+?) |
| 25 |
Value RENEW_DATE ([\s\S]+?) |
| 26 |
Value ASSOCIATED_TRUSTPOINTS (\S+) |
| 27 |
Value STORAGE (\S+) |
| 28 |
|
| 29 |
Start |
| 30 |
^\s*[CA]*\s*Certificate\s*$$ -> Continue.Record |
| 31 |
^\s*${CERTIFICATE_TYPE}\s*$$ |
| 32 |
^\s*Status:\s*${STATUS}\s*$$ |
| 33 |
^\s*Certificate\s*Serial\s*Number\s*\(hex\):\s*${SERIAL_NUMBER}\s*$$ |
| 34 |
^\s*Certificate\s*Usage:\s*${CERTIFICATE_USAGE}\s*$$ |
| 35 |
^\s*Issuer:\s*$$ -> Issuer |
| 36 |
^\s*start\s*date:\s*${START_DATE}\s*$$ |
| 37 |
^\s*end\s*date:\s*${END_DATE}\s*$$ |
| 38 |
^\s*renew\s*date:\s*${RENEW_DATE}\s*$$ |
| 39 |
^\s*Associated\s*Trustpoints:\s*${ASSOCIATED_TRUSTPOINTS}\s*$$ |
| 40 |
^\s*Storage:\s*${STORAGE}\s*$$ |
| 41 |
^\s*$$ |
| 42 |
# Capture time-stamp if vty line has command time-stamping turned on |
| 43 |
^Load\s+for\s+ |
| 44 |
^Time\s+source\s+is |
| 45 |
^. -> Error |
| 46 |
|
| 47 |
Issuer |
| 48 |
^\s*e=${ISSUER_E}\s*$$ |
| 49 |
^\s*cn=${ISSUER_CN}\s*$$ |
| 50 |
^\s*ou=${ISSUER_OU}\s*$$ |
| 51 |
^\s*o=${ISSUER_O}\s*$$ |
| 52 |
^\s*l=${ISSUER_L}\s*$$ |
| 53 |
^\s*st=${ISSUER_ST}\s*$$ |
| 54 |
^\s*c=${ISSUER_C}\s*$$ |
| 55 |
^\s*Subject:\s*$$ -> Subject |
| 56 |
^. -> Error |
| 57 |
|
| 58 |
Subject |
| 59 |
^\s*e=${SUBJECT_E}\s*$$ |
| 60 |
^\s*cn=${SUBJECT_CN}\s*$$ |
| 61 |
^\s*ou=${SUBJECT_OU}\s*$$ |
| 62 |
^\s*o=${SUBJECT_O}\s*$$ |
| 63 |
^\s*l=${SUBJECT_L}\s*$$ |
| 64 |
^\s*st=${SUBJECT_ST}\s*$$ |
| 65 |
^\s*c=${SUBJECT_C}\s*$$ |
| 66 |
^\s*Name:\s*${SUBJECT_NAME}\s*$$ |
| 67 |
^\s*Serial\s*Number:\s*${SUBJECT_SERIAL_NUMBER}\s*$$ |
| 68 |
^\s*serialNumber=\S+\s*$$ |
| 69 |
^\s*hostname=${SUBJECT_HOSTNAME}\s*$$ |
| 70 |
^\s*CRL Distribution Points:\s*$$ -> CRLDistPoints |
| 71 |
^\s*Validity\s*Date:\s*$$ -> Start |
| 72 |
^. -> Error |
| 73 |
|
| 74 |
CRLDistPoints |
| 75 |
^\s*${CRL_DISTRIBUTION_POINT}\s*$$ |
| 76 |
^\s*Validity\s*Date:\s*$$ -> Start |
| 77 |
^. -> Error |