EasyUA Reference
SubjectName Property
See Also  Send Feedback
Opc.Ua.Core.Net4 Assembly > Opc.Ua Namespace > CertificateIdentifier Class : SubjectName Property

Glossary Item Box

The certificate's subject name - the distinguished name of an X509 certificate.

Syntax

Visual Basic (Usage)Copy Code
Dim instance As CertificateIdentifier
Dim value As String
 
instance.SubjectName = value
 
value = instance.SubjectName
C# 
[DataMemberAttribute(EmitDefaultValue=false, Order=4)]
public string SubjectName {get; set;}

Property Value

The distinguished name of an X509 certificate acording to the Abstract Syntax Notation One (ASN.1) syntax.

Remarks

The subject field identifies the entity associated with the public key stored in the subject public key field. The subject name MAY be carried in the subject field and/or the subjectAltName extension. Where it is non-empty, the subject field MUST contain an X.500 distinguished name (DN). Name is defined by the following ASN.1 structures: Name ::= CHOICE {RDNSequence } RDNSequence ::= SEQUENCE OF RelativeDistinguishedName RelativeDistinguishedName ::= SET OF AttributeTypeAndValue AttributeTypeAndValue ::= SEQUENCE {type AttributeType, value AttributeValue } AttributeType ::= OBJECT IDENTIFIER AttributeValue ::= ANY DEFINED BY AttributeType DirectoryString ::= CHOICE { teletexString TeletexString (SIZE (1..MAX)), printableString PrintableString (SIZE (1..MAX)), universalString UniversalString (SIZE (1..MAX)), utf8String UTF8String (SIZE (1..MAX)), bmpString BMPString (SIZE (1..MAX)) } The Name describes a hierarchical name composed of attributes, such as country name, and corresponding values, such as US. The type of the component AttributeValue is determined by the AttributeType; in general it will be a DirectoryString. String X.500 AttributeType:
  • CN commonName
  • L localityName
  • ST stateOrProvinceName
  • O organizationName
  • OU organizationalUnitName
  • C countryName
  • STREET streetAddress
  • DC domainComponent
  • UID userid
This notation is designed to be convenient for common forms of name. This section gives a few examples of distinguished names written using this notation. First is a name containing three relative distinguished names (RDNs): CN=Steve Kille,O=Isode Limited,C=GB RFC 3280 Internet X.509 Public Key Infrastructure, April 2002 RFC 2253 LADPv3 Distinguished Names, December 1997

Requirements

Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x

See Also

Copyright © 2018 Advosol Inc. All Rights Reserved.