Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

show services ssl certificate

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show services ssl certificate [all | brief | detail]
<pic-info fpc-slot slot number pic-slot slot-number>

Description

Display information about the SSL certificates available on the device.

Note:

When the CLI is in logical system context mode and you enter an operational-mode command, the output of the command displays information related to the logical system only.

Options

all

Display information about all SSL certificates.

brief

Display brief information about SSL certificate.

detail

Display detail information about SSL certificates.

pic-info fpc-slot slot number pic-slot slot-number

Display the information for the FPC in the specified slot.

Required Privilege Level

view

Output Fields

Table 1 lists the output fields for the show services ssl certificate command. Output fields are listed in the approximate order in which they appear.

Table 1: show services ssl certificate Output Fields

Field Name

Field Description

Level of Output

CertID

Name of the local digital certificate.

all, brief, detail

Certificate Type

Type of certificate. That is—Signing certificate (LOCAL-CERT) which is used to sign other certificates or it is CA-CERT used to verify other certificates in context of SSL-proxy.

brief, detail

cert modify time

Indicates the time when the certificate data was last modified.

detail

key modify time

Indicates the time when the certificate key was last modified (displayed in local certificate only).

detail

certificate version

Version of the digital certificate.

detail

Serial number

Unique serial number of the digital certificate.

detail

Issuer

Authority that issued the digital certificate, including details of the authority organized using the distinguished name format. Possible subfields are:

  • C—Country of origin.

  • ST—State or province name.

  • L—Locality.

  • O—Organization of origin.

  • OU—Organizational unit.

  • CN—Common name of the authority.

  • emailAddress—Common name of the authority.

brief, detail

Subject

Details of the digital certificate holder organized using the distinguished name format. Possible subfields are:

  • C—Country of origin.

  • ST—State or province name.

  • L—Locality.

  • O—Organization of origin.

  • OU—Organizational unit.

  • CN—Common name of the authority.

  • emailAddress—Common name of the authority.

brief, detail

validity

Validity of the certificate (displayed in local certificate only). It includes:

  • not before—Start time when the digital certificate becomes valid.

  • not after—End time when the digital certificate becomes invalid.

detail

Public Key algorithm

Encryption algorithm used with the private key, such as rsaEncryption (1024 bits).

brief, detail

Signature algorithm

Encryption algorithm that the CA used to sign the digital certificate, such as sha1WithRSAEncryption.

detail

CRL

Certificate revocation list related information (displayed for CA certificates only). It includes:

  • present—list of digital certificates that have been revoked before their expiration date are present or not.

  • check—CRL check status: enabled or disabled.

  • download-failed—Indicates the download status of the certificate revocation list.

  • check-on-download-fail—Indicates checking of the certificates against the local CRL file is enabled when the CRL download fails.

detail

Sample Outputs

show services ssl certificate all

content_copy zoom_out_map
user@host > show services ssl certificate all

Lsys Name : root-logical-system
PIC:fwdd0 fpc[0] pic[0] ------
CertId  
-----------------------------
ssl-inspect-ca
ssl-cert-4k

command-name

content_copy zoom_out_map
user@host > show services ssl certificate brief certificate-id

Lsys Name : root-logical-system

PIC:fpc0 fpc[0] pic[0] ------

CertID : trusted-ca 
Certificate Type : CA-CERT 
Issuer : /C=IN/ST=KA/L=BNG/O=XYZ/OU=ABC/CN=5.0.0.1/emailAddress=newca@test.com 
Subject : /C=IN/ST=KA/L=BNG/O=XYZ/OU=ABC/CN=5.0.0.1/emailAddress=newca@test.com 
Public Key algorithm : rsaEncryption

command-name

content_copy zoom_out_map
user@host> show services ssl certificate brief certificate-id ssl-inspect-ca
Lsys Name : root-logical-system

PIC:fpc0 fpc[0] pic[0] ------

CertID                : ssl-inspect-ca
Certificate Type      : LOCAL-CERT
Issuer                : /DC=dc/CN=xyz.com/OU=IT/O=abc/L=bng/ST=KA/C=IN
Subject               : /DC=dc/CN=xyz.com/OU=IT/O=abc/L=bng/ST=KAC=IN
Validity :
    Not before        : Mon 02/18/2019 07:30:37 AM
    Not after         : Sat 02/17/2024 07:30:37 AM
Public Key algorithm  : rsaEncryption

show services ssl certificate detail (Local Certificate)

content_copy zoom_out_map
user@host > show services ssl certificate detail
Lsys Name : root-logical-system

PIC:fpc0 fpc[0] pic[0] ------

CertID                : ssl-inspect-ca
Certificate Type      : LOCAL-CERT
cert modify time      : Mon 02/18/2019 07:30:37 AM
key modify time       : Mon 02/18/2019 07:30:23 AM
certificate version   : 3
serial number         : 72 a4 a8 12 0e a0 da 5f ee 27 47 d8 19 7c 76 b5
Issuer                : /DC=dc/CN=XYZ.com/OU=IT/O=jnpr/L=bng/ST=KA/C=IN
Subject               : /DC=dc/CN=XYZ.com/OU=IT/O=jnpr/L=bng/ST=KA/C=IN
Validity :
    Not before        : Mon 02/18/2019 07:30:37 AM
    Not after         : Sat 02/17/2024 07:30:37 AM
Public Key algorithm  : rsaEncryption
Signature Algorithm   : sha256WithRSAEncryption

show services ssl certificate detail (CA Certificate)

content_copy zoom_out_map
user@host > show services ssl certificate detail
Lsys Name : root-logical-system

PIC:fpc0 fpc[0] pic[0] ------

CertID                : test
Certificate Type      : CA-CERT
cert modify time      : Mon 09/02/2019 09:47:48 PM
certificate version   : 1
serial number         : 21 a8 d6 00 eb 24 1f 78 9a e5 0e ec 6a 39 ce 65 66 42 8c 0a
Issuer                : /C=IN/ST=KA/L=BLR/O=XYZ.com/OU=IT/CN=5.0.0.1/emailAddress=newca@test.com
Subject               : /C=IN/ST=KA/L=BLR/O=XYZ.con/OU=IT/CN=5.0.0.1/emailAddress=newca@test.com
Public Key algorithm  : rsaEncryption
Signature Algorithm   : sha256WithRSAEncryption
CRL :
    present           : no
    check             : enabled
    download-failed   : true
    check-on-download-fail : enabled

Release Information

Command introduced in Junos OS Release 19.3R1.

footer-navigation