CRL file: Request

Prev Next

To get the 2FA certificate revocation list file, send the following request:

GET https://<IA_IP_address>:<port_number>/config/v1/auth/x509/crl/file

Required headers:

Cookie: px=<token> X-Username: <user> X-Role: <role>

Options

  • IA_IP_address—The IP address of the NDR appliance running the NDR API.

  • port_number—The port number of the NDR appliance running the NDR API.

  • token—This token authenticates the session. By default, the session times out after 24 hours.

  • user—The user ID.

  • role—The user's role.

Example

GET https://xxx.xxx.xxx.xxx:443/config/v1/auth/x509/crl/file

Required headers:

Cookie: px=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
X-Username: wheel
X-Role: wheel

CRL file: Response

HTTP/1.1 [Response Code] [Response Message]				
Server: [Server]
Date: [Date]					
Content-Type: application/pkix-crl
Content-Disposition: inline; filename="crl.pem"
-----BEGIN X509 CRL-----
<pem-file>
-----END X509 CRL-----
Response fields
  • Response code—A standard HTTP response code.

    • 200—Request successful; the configuration was successful.

  • Response message—A standard HTTP response message.

    • OK—Request successful; the configuration was successful.

  • Server—The server being used.

  • Date—Standard HTML date format.

  • Content type—The response format.

  • pem-file—The contents of the CRL file.

Example
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 16 Aug 2019 13:21:11 GMT
Content-Type: application/json; charset=utf-8
Content-Type: application/pkix-crl
Content-Disposition: inline; filename="crl.pem"
-----BEGIN X509 CRL-----
MIIC9zCB4AIBATANBgkqhkiG9w0BAQUFADCBhzELMAkGA1UEBhMCVVMxCzAJBgNV
BAgMAlZBMQ8wDQYDVQQHDAZSZXN0b24xEDAOBgNVBAoMB0ZpcmVFeWUxCzAJBgNV
BAsMAkVGMRIwEAYDVQQDDAlsb2NhbGhvc3QxJzAlBgkqhki39w0BCQEWGHJvYmVy
dC5wZXJyeUBmaXJlZXllLmNvbRcNMTkwMjA1MTQ1MzI0WhcNMTkwMzA3MTQ1MzI0
WjAUMBICAQEXDTE5SHrxNTE0NTAxOFqgDjAMMAoGA1UdFAQDAgEAMA0GCSqGSIb3
DQEBBQUAA4ICAQA4TlqUoBR8baJ7KkYMC0lvfIO/QOB89NguiKmRVYngwVWD3Pqj
tbGwWr4FI8ueXJp/3LFhP+1PvmMTGS3m3dsZQt+xW8syKK5ZFMe60e3wcrdCZCnD
lwggbauCIJkdI/YkzsGwc6I4vQyyKhDLF6HvbYxYVG04yEHWwz5Qr6k0fVfY2HPp
5+mpTz4gaIIXnFY38dnjvq5I7FJvsjoyuT8ys4GrhD/Jafq72+eGR3xaGA880zcc
v9rU9MZGJJkor9dAxDncoaKnrS+Tm4ayPytEQaa/j8PcinV/HXkKbtX11XpypLBL
JZoi6RN44X+ge3lD9XqPPcEteAHR0Hu4TfQNkdJYypB4e43epLqwvIw4A/cM6Rih
ni+qk906EiS+o5Rv1PtyaA9sRROD5O1oXY6Fq/hb/3v/Jwauz8nAcoxDA8MYABK+
ww9NFZXPzOyljcKpqBtspA0W3S/0cUwHplFgh3wbUsyVw7m2FAN3E1d4dDwBeukr
bJcUTfNo4l4paadj3JApEK3CYnTLeBTbYAYn9C91gcO5Wd7xSI10hOmWPdKMyLYm
CBx1+l60CvvGtsT1RnRx+YmkjrIsdwu+Zc1XInbsSqG0YxaXkgxxufYnHsrdiHy0
gfOZArHzSTFRTsnkMwSmMNqKuHXCDBMPRNXRx5QipGiTWWt9nS/4/7RQOA==
-----END X509 CRL-----

cURL code sample: CRL file

curl -k --cookie "px=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" 
-H "X-Username: wheel" -H "X-Role: wheel" 
https://xxx.xxx.xxx.xxx:443/config/v1/auth/x509/crl/file

This cURL sample includes the following options:

  • -k—This option explicitly allows cURL to perform insecure SSL connections and transfers, which allows you to test your SSL connection without installing a CA certificate.

  • --cookie "px=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"—This option specifies the authentication token for this session.

  • -H "X-Username: wheel"—User name.

  • -H "X-Role: wheel"—User role.

  • https://xxx.xxx.xxx.xxx:443/config/v1/auth/x509/crl/file—The CRL file request URL. Replace xxx.xxx.xxx.xxx with the IP address of your NDR appliance.

Results

This example retrieves the CRL file.