X.500 Distinguished Names被用来标识一个实体,例如那些用主题和发行者(签名者)来命名的X.509证书领域。keytool支持如下部分:
- commonName — 一个人的普通名字,例如:“Susan Jones”
- organicationUnit — 小组织 (例如:部门或者分支)名字。例如:“Perchasing”
- organicationName — 大的组织名称,例如:“ABCSysten, Inc.”
- localityName — 位置(城市)的名称。例如:“Palo Alto”
- stateName — 洲或者省的名称,例如:“California”
- country — 两个字母的国家代码,例如:“CH”
如果使用-genkey或者-selfcert命令的情况下,当需要提供一个完整的X.500 Distinguished 名字的字符串作为-dname选项的值时,名字的字符串必须遵守如下格式:
CN=cName, OU=orgUnit, O=org, L=city, S=state, C=countryCode
其中所有的斜体部分是实际的值,另外下面的一些关键字的缩写:
CN=commonName
OU=organizationUnit
O=organizationName
L=localityName
S=stateName
C=country
一个简单的例子:
CN=Mark Smith, OU=JavaSoft, O=Sun, L=Cupertino, S=California, C=US
一个简单的使用上述字符串的命令的例子:
keytool -genkey -dname "CN=Mark Smith, OU=JavaSoft, O=Sun, L=Cupertino, S=California, C=US" -alias mark
缩写不区分大小写。例如:"CN", "cn", and "Cn" 被视为相同。
顺序是必要的,每一个子项目按顺序出现。但是不需要有所有的子项。你可能有一个子集,例:
CN=Steve Meier, OU=SunSoft, O=Sun, C=US
如果标识名的字符串中包含逗号。则逗号必须通过转义字符"\"书写:
cn=peter schuster, o=Sun Microsystems\, Inc., o=sun, c=us
当你执行一个命令时,标识符的字符串其实并不是必须的,命令需要该字符串,但不一定必须写在命令行上,因为keytool可以就每个子项逐个向用户提问。在这种情况下,逗号就不需要转义字符“/”了。
分享到:
相关推荐
RFC 2253 UTF-8 String Representation of Distinguished Names(中文版)
ASN.1的正式标准文档和它的编码规则由 International Telecommunications Union Telecommunications Sector (ITU-T)和International Standards Organization (ISO) / International Electrotechnical Commission ...
应用层协议如X.400(email)、X.500和LDAP(目录服务)、H.323(VoIP)和SNMP使用 ASN.1 描述它们交互的协议数据单元。在UMTS的接入和非接入层也有广泛的应用。 ASN.1的其他应用领域参见此处[1]。
distinguished,leaders,晚会主持词.pdf
may carry on each kind of development in this code foundation, for instance the algorithm optimization, transfers the code technology, realizes each kind has distinguished extension code 文件列表...
(Eds.) Ninth Annual Distinguished Lecture Series in Special Education and Rehabilitation. Los Angeles: University of Southern California Press, 1971, 113 p., [dollar]3.00 (paperback) BOOK REVIEWS ...
3. 从协议衍化上阐述LDAP,它是“目录访问协议DAP——ISO X.500”的衍生,简化了DAP协议,提供了轻量级的基于TCP/IP协议的网络访问,降低了管理维护成本,但保持了强壮且易于扩充的信息框架。LDAP的应用程序可以很...
$UserDN = (Get-ADUser -Identity $_.Username).distinguishedName $TargetOU = $_.TargetOU Write-Host " Moving Accounts ..... " # Move user to target OU. Move-ADObject -Identity $UserDN -TargetPath $...
Alex X. Liu is a Professor of the Department of Computer Science and Engineer- ing at Michigan State University, East Lansing, Michigan, USA. He received his Ph.D. degree in Computer Science from The ...
LDAP(Light Directory Access Portocol)是轻量目录访问协议,基于X.500标准,支持TCP/IP。 LDAP目录以树状的层次结构来存储数据。每个目录记录都有标识名(Distinguished Name,简称DN),用来读取单个记录, 一般...
面向服务的云计算架构——Service Oriented Cloud Computing Infrastructure E.G.Nadhan EDS Distinguished SE June, 2009
Distinguished by its practice-oriented approach to neurology based on the patients' presenting symptoms, this classic has been updated and revised to make it even more clinically-relevant and ...
Model checking is a technique for verifying finite state concurrent systems such as sequential circuit designs and communication ... Kurshan, Distinguished Member Technical Staff, Bell Laboratories
Davenport, Distinguished Professor, Babson College and Fellow, MIT Initiative on the Digital Economy “I like your book. The chapters address problems that have faced statisticians for generations, ...
approaches are distinguished from others in that the penalty functions are symmetric, nonconcave on 401ˆ5, and have singularities at the origin to produce sparse solutions. Furthermore, the penalty ...
–Raymond Hettinger, Distinguished Python Core Developer The Python 3 Standard Library contains hundreds of modules for interacting with the operating system, interpreter, and Internet–all ...
certification request consists of a distinguished name, a public key, and optionally a set of attributes, collectively signed by the entity requesting certification. Certification requests are sent...
With its distinguished editor and international team of expert contributors, the Handbook of terahertz technology for imaging, sensing and communications is an authoritative guide to the field for ...
CUDA范例精解通用GPU编程CUDA by Example addresses the heart of the ...University Distinguished Professor, University of Tennessee Distinguished Research Staff Member, Oak Ridge National Laboratory