No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

FusionServer Tools 2.0 uREST User Guide 16

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Querying a Dual-Factor Certificate

Querying a Dual-Factor Certificate

Function

Query a dual-factor certificate.

Format

./urest -H HOST -p PORT -U USERNAME -P PASSWORD get2factorcert -T {client,root}

Parameters

Parameter

Description

Value

HOST

iBMC IP address or domain name. It is a mandatory parameter. If an IPv6 address is used, the IPv6 address must be included in square brackets, such as [1001::1001].

-

PORT

Port number. The default value is 443. It is an optional parameter.

Enter the port number if the default value 443 is not used.

USERNAME

iBMC user name. It is a mandatory parameter.

-

PASSWORD

Password of the iBMC user. It is a mandatory parameter.

-

{client,root}

Dual-factor certificate type. It is a mandatory parameter.

  • client: client certificate
  • root: root certificate

Usage Guidelines

None

Example

Obtain help information.

[root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** get2factorcert -h 
usage: urest get2factorcert [-h] -T {client,root} 

optional arguments: 
  -h, --help        show this help message and exit 
  -T {client,root}  two factor certificate type

Query a dual-factor certificate.

[root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** get2factorcert -T root 
[RootCertificate] 
-------------------------------------------------- 
CertId       :1 
IssueBy      :CN=MM910, OU=IT, O=Huawei, L=ShenZhen, S=GuangDong, C=CN 
ValidTo      :Jan 03 2027 GMT 
SerialNumber :01 
IssueTo      :CN=MM910, OU=IT, O=Huawei, L=ShenZhen, S=GuangDong, C=CN 
ValidFrom    :Jan 03 2017 GMT 
-------------------------------------------------- 
CertId       :2 
IssueBy      :CN=BMC1, OU=SERVER1, O=HUAWEI1, L=SHENZHEN1, S=GUANGDONG1, C=CN 
ValidTo      :Dec 16 2026 GMT 
SerialNumber :0c a1 
IssueTo      :CN=BMC1, OU=SERVER1, O=HUAWEI1, L=SHENZHEN1, S=GUANGDONG1, C=CN 
ValidFrom    :Dec 16 2016 GMT 
-------------------------------------------------- 
CertId       :3 
IssueBy      :CN=BMC4, OU=SERVER4, O=HUAWEI4, L=SHENZHEN4, S=GUANGDONG4, C=CN 
ValidTo      :Dec 16 2026 GMT 
SerialNumber :0c a4 
IssueTo      :CN=BMC4, OU=SERVER4, O=HUAWEI4, L=SHENZHEN4, S=GUANGDONG4, C=CN 
ValidFrom    :Dec 16 2016 GMT 
--------------------------------------------------

System Response

Table 3-41 Output description

Parameter

Description

CertId

Dual-factor certificate ID.

IssueBy

Issuer of the dual-factor certificate.

ValidTo

User of the dual-factor certificate.

SerialNumber

Serial number of the dual-factor certificate.

IssueTo

End time of the dual-factor certificate.

ValidFrom

Start time of the dual-factor certificate.

Translation
Download
Updated: 2020-02-13

Document ID: EDOC1000176182

Views: 122134

Downloads: 591

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next