• Articles
  • Api Documentation
Search Results for

    Show / Hide Table of Contents
    • AdditionalData
      • AdrParametersItemChoiceEnum
      • AnniversaryItemChoiceEnum
      • BdayItemChoiceEnum
      • ByRefType
      • CallerInfo
      • CommentSubType
      • CommentType
      • DeviceInfoType
      • DeviceInfoTypeUniqueDeviceID
      • EmergencyCallDataValueType
      • JCard
      • KeyItemChoiceEnum
      • LocationInfo
      • ProvidedBy
      • ProvidedByType
      • ProviderInfoType
      • RelatedParametersItemChoiceEnum
      • SchemaConsts
      • ServiceInfoType
      • SubcontractorPriorityType
      • SubscriberInfoType
      • TelContactInfo
      • TelItemChoiceEnum
      • VcardTypeTzItemChoiceEnum
      • adr
      • adrParameters
      • adrParametersGeo
      • adrParametersTZ
      • altid
      • anniversary
      • anniversaryParameters
      • bday
      • bdayParameters
      • caladruri
      • caladruriParameters
      • calscale
      • calscaleText
      • caluri
      • caluriParameters
      • categories
      • categoriesParameters
      • clientpidmap
      • email
      • emailParameters
      • fburl
      • fburlParameters
      • fn
      • fnParameters
      • gender
      • group
      • impp
      • imppParameters
      • key
      • keyParameters
      • kind
      • label
      • lang
      • langParameters
      • language
      • logo
      • logoParameters
      • mediatype
      • member
      • memberParameters
      • n
      • nParameters
      • nickname
      • nicknameParameters
      • note
      • noteParameters
      • org
      • orgParameters
      • photo
      • photoParameters
      • pid
      • pref
      • prodid
      • related
      • relatedParameters
      • relatedParametersText
      • role
      • roleParameters
      • sex
      • sortas
      • sound
      • soundParameters
      • source
      • sourceParameters
      • tel
      • telParameters
      • title
      • titleParameters
      • type
      • typeText
      • uid
      • url
      • urlParameters
      • valuetimestamp
      • vcardType
      • vcardTypeGeo
      • vcardTypeGeoParameters
      • vcardTypeTZ
      • vcardTypeTZParameters
      • vcards
    • AgencyLocator
      • LocatorRecord
      • LocatorRecordUri
      • LocatorRecordUriArray
      • NameSet
      • NameSetArray
    • BadActor
      • BadActorContents
    • CommonAlertingProtocol
      • alert
      • alertInfo
      • alertInfoArea
      • alertInfoAreaGeocode
      • alertInfoCategory
      • alertInfoCertainty
      • alertInfoEventCode
      • alertInfoParameter
      • alertInfoResource
      • alertInfoResponseType
      • alertInfoSeverity
      • alertInfoUrgency
      • alertMsgType
      • alertScope
      • alertStatus
    • ConferenceEvent
      • calltype
      • conferencedescriptiontype
      • conferencemediatype
      • conferencemediumtype
      • conferencestatetype
      • conferencetype
      • disconnectiontype
      • endpointstatustype
      • endpointtype
      • executiontype
      • hosttype
      • joiningtype
      • mediastatustype
      • mediatype
      • sidebarsbyvaltype
      • sipdialogidtype
      • statetype
      • uristype
      • uritype
      • userrolestype
      • userstype
      • usertype
    • DiscrepancyReporting
      • AdrDiscrepancyReport
      • AdrProblemEnum
      • BcfDiscrepancyReport
      • BcfProblemEnum
      • CallTakerDiscrepancyReport
      • CallTransferDiscrepancyReport
      • DRTypeEnum
      • DiscrepancyReport
      • DiscrepancyReportResponse
      • DiscrepancyResolution
      • DrResolutionEnum
      • DrServerityEnum
      • EsrpDiscrepancyReport
      • EsrpProblemEnum
      • GisDiscrepancyReport
      • GisProblemEnum
      • ImrDiscrepancyReport
      • ImrProblemEnum
      • LisDiscrepancyReport
      • LisProblemEnum
      • LogSignatureCertificateDiscrepancyReport
      • LogSignatureProblemEnum
      • LoggingDiscrepancyReport
      • LoggingProblemEnum
      • LostDiscrepancyReport
      • LostProblemEnum
      • LostQueryTypeEnum
      • McsDiscrepancyReport
      • NetworkDiscrepancyReport
      • NetworkProblemEnum
      • OriginatingServiceDiscrepancyReport
      • OriginatingServiceProblemEnum
      • PermissionsDiscrepancyReport
      • PermissionsProblemEnum
      • PolicyDiscrepancyReport
      • PolicyProblemEnum
      • PolicyStoreDiscrepancyReport
      • PolicyStoreProblemEnum
      • SipDiscrepancyReport
      • SipProblemEnum
      • StatusUpdate
      • TestCallDiscrepancyReport
      • TestCallProblemEnum
    • ECall
      • ackType
      • ackTypeActionResult
      • capabilitiesType
      • controlType
      • requestType
      • requestTypeText
    • Geocode
      • GeoCodeCivicAddress
      • GeodeticData
    • Held
      • HeldConsts
      • HeldDevice
      • HeldError
      • HeldErrorMessage
      • HeldIp
      • LocationRequest
      • LocationResponse
      • LocationType
      • LocationUriSet
    • HttpUtils
      • AsyncHttpRequestor
      • HttpMethodEnum
      • HttpResults
    • I3SubNot
      • AbandonedCall
      • DequeueRegistrationRequestBody
      • DequeueRegistrationResponseBody
      • ElementState
      • ElementStateType
      • EsrpNotify
      • GapOverlap
      • QueueState
      • QueueStateType
      • SecurityPostureType
      • ServiceState
      • ServiceStateType
      • ServiceType
      • SubNotConsts
      • calltype
      • conferencedescriptiontype
      • conferencemediatype
      • conferencemediumtype
      • conferencestatetype
      • conferencetype
      • disconnectiontype
      • endpointstatustype
      • endpointtype
      • executiontype
      • hosttype
      • joiningtype
      • mediastatustype
      • mediatype
      • sidebarsbyvaltype
      • sipdialogidtype
      • statetype
      • uristype
      • uritype
      • userrolestype
      • userstype
      • usertype
    • I3V3.LogEvents
      • AdditionalAgencyLogEvent
      • AdditionalDataQueryLogEvent
      • AdditionalDataResponseLogEvent
      • AgencyIdArray
      • AgentStateChangeLogEvent
      • AliLocationQueryLogEvent
      • AliLocationResponseLogEvent
      • CallEndLogEvent
      • CallIdArray
      • CallLogEvent
      • CallProcessLogEvent
      • CallSignalingMessageLogEvent
      • CallStartLogEvent
      • CallStateChangeLogEvent
      • CallTransferLogEvent
      • DiscrepancyReportLogEvent
      • EidoDeniedLogEvent
      • EidoDereferenceFactoryQueryLogEvent
      • EidoDereferenceFactoryQueryResponseLogEvent
      • EidoLogEvent
      • EidoTransmissionErrorLogEvent
      • ElementStateChangeLogEvent
      • GatewayCallLogEvent
      • HookflashLogEvent
      • I3LogEventContent
      • IncidentClearLogEvent
      • IncidentIdArray
      • IncidentLinkLogEvent
      • IncidentMergeLogEvent
      • IncidentReopenLogEvent
      • IncidentSplitLogEvent
      • IncidentUnLinkLogEvent
      • IncidentUnMergeLogEvent
      • KeepAliveFailureLogEvent
      • LegacyDigitsLogEvent
      • LocationQueryLogEvent
      • LocationResponseLogEvent
      • LogEvent
      • LogEventContainer
      • LogEventContainerArray
      • LogEventIdArray
      • LostQueryLogEvent
      • LostResponseLogEvent
      • MalformedMessageLogEvent
      • MediaEndLogEvent
      • MediaStartLogEvent
      • MessageLogEvent
      • NonRtpMediaMessageLogEvent
      • PolicyChangeLogEvent
      • QueueStateChangeLogEvent
      • RecCallEndLogEvent
      • RecCallStartLogEvent
      • RecMediaEndLogEvent
      • RecMediaStartLogEvent
      • RecordingFailedLogEvent
      • RouteLogEvent
      • RouteRuleMsgLogEvent
      • ServiceStateChangeLogEvent
      • SipRecMetadataLogEvent
      • SubParamsType
      • SubscribeLogEvent
      • SubscriptionRequestedLogEvent
      • SubscriptionRequestedResponseLogEvent
      • SubscriptionTerminatedLogEvent
      • SubscriptionTerminatedResponseLogEvent
      • VersionsLogEvent
      • WebSocketEstablishedLogEvent
      • WebSocketTerminatedLogEvent
    • I3V3.LoggingHelpers
      • I3LogEventClient
      • I3LogEventClientMgr
      • I3LoggingErrorDelegate
      • I3LoggingUtils
      • LoggingServerStatusChangedDeletate
    • Lost
      • DisplayName
      • FindService
      • FindServiceResponse
      • GetServiceBoundary
      • GetServiceBoundaryResponse
      • ListServices
      • ListServicesByLocation
      • ListServicesByLocationResponse
      • ListServicesResponse
      • LocationUsed
      • LostErrors
      • LostHelper
      • LostMsgBase
      • LostPath
      • LostRedirect
      • LostWarnings
      • Mapping
      • PathVia
      • ServiceBoundaryReference
    • Msag
      • MsagData
      • PidfLoData
    • Ng911CertUtils
      • CertUtils
      • DistinguishedNameParams
      • KeyUsageParams
      • Ng911SanParams
      • Roles
    • Ng911Common
      • ConditionTypeEnum
      • I3JoseHeader
      • I3Jws
      • VersionItemType
      • VersionServiceInfoType
      • VersionsArrayType
    • Ng911Lib.Utilities
      • ContentTypes
      • JsonHelper
      • PurposeTypes
      • TimeUtils
      • Utf8StringWriter
      • XmlHelper
    • NgWebSockets
      • NgWebSocketClient
      • WebSocketMessageReceived
    • Pidf
      • ArcBand
      • Axis
      • Circle
      • CivicAddress
      • Confidence
      • Device
      • DirectionType
      • DynamicType
      • Ellipse
      • Ellipsoid
      • Exterior
      • GeoPriv
      • LinearRing
      • Orientation
      • PdfEnum
      • Person
      • Point
      • Polygon
      • Position
      • Presence
      • Prism
      • PrismBase
      • Radius
      • Sphere
      • Status
      • Tuple
      • locInfoType
      • locPolicyType
    • PolicyRouting
      • ActionBase
      • AdditionalDataCondition
      • BodyPartCondition
      • BusyAction
      • CallSourceCondition
      • CallSuspicionCondition
      • CallingNumberVerificationStatusCondition
      • CapCondition
      • ConditionBase
      • IncomingQueueCondition
      • InvokePolicyAction
      • LocationCondition
      • LogAction
      • LostServiceUrnCondition
      • MimeBodyCondition
      • NormalHextHopCondition
      • NotifyAction
      • OpCode
      • Pref
      • PrrLocation
      • QueueStateCondition
      • RequestUriCondition
      • RouteAction
      • Rule
      • SdpOfferCondition
      • SecurityPostureCondition
      • ServiceStateCondition
      • SipHeaderCondition
      • TimePeriodCondition
    • PolicyStore
      • Policy
      • PolicyArray
      • PolicyEnum
      • PolicyEnumArray
      • PolicyTypeEnum
    • SipRecMetaData
      • dataMode
      • group
      • name
      • nameID
      • participant
      • participantsessionassoc
      • participantsessionassocParam
      • participantstreamassoc
      • reason
      • recording
      • requestsnapshot
      • session
      • sessionrecordingassoc
      • stream
    • TestCall
      • ConditionType
      • PrrTest
      • SendCallRequests
    • Veds
      • ActivityLocationAssociationType
      • ActivityType
      • AddressType
      • AirbagCategoryCodeSimpleType
      • AirbagCategoryCodeType
      • AirbagType
      • AngleMeasureType
      • AssociationType
      • AutomatedCrashNotificationType
      • BinaryType
      • CommercialCarrierUSDOTNumberType
      • ComplexObjectType
      • ContactActivityType
      • ContactInformationType
      • ContactInformationType1
      • ConveyanceType
      • CrashPersonRoleCodeSimpleType
      • CrashPersonRoleCodeType
      • CrashPersonType
      • CrashPersonType1
      • CrashType
      • CrashType1
      • CrashVehicleType
      • CrossStreetType
      • DateType
      • DatumCodeSimpleType
      • DatumCodeType
      • DocumentType
      • DriverLicenseBaseType
      • DriverLicenseType
      • DrivingIncidentType
      • FullTelephoneNumberType
      • IdentificationType
      • ImageType
      • IncidentType
      • InternationalTelephoneNumberType
      • ItemType
      • ItemsChoiceType
      • LatitudeCoordinateType
      • LatitudeDegreeType
      • LocationType
      • LongitudeCoordinateType
      • LongitudeDegreeType
      • MeasurePointValueType
      • MeasureType
      • NotificationDestinationOrganizationType
      • NotificationDeviceTypeCodeSimpleType
      • NotificationDeviceTypeCodeType
      • NotificationOriginatingOrganizationType
      • OrganizationContactInformationAssociationType
      • OrganizationType
      • PersonContactInformationAssociationType
      • PersonLanguageType
      • PersonNameTextType
      • PersonNameType
      • PersonType
      • PersonType1
      • PowerSourceCategoryCodeSimpleType
      • PowerSourceCategoryCodeType
      • ProperNameTextType
      • ReferenceType
      • SEXCodeSimpleType
      • SEXCodeType
      • SpeedMeasureType
      • StreetType
      • StructuredAddressType
      • TangibleItemType
      • TelephoneNumberType
      • TextType
      • TwoDimensionalGeographicCoordinateType
      • VEDSNotificationOriginatorCodeSimpleType
      • VEDSNotificationOriginatorCodeType
      • VehicleAutonomousCapabilityCodeSimpleType
      • VehicleAutonomousCapabilityCodeType
      • VehicleBodyCategoryCodeSimpleType
      • VehicleBodyCategoryCodeType
      • VehicleCrashPulseType
      • VehicleFinalRestOrientationCodeSimpleType
      • VehicleFinalRestOrientationCodeType
      • VehiclePropulsionStorageCodeSimpleType
      • VehiclePropulsionStorageCodeType
      • VehicleSeatLocationCategoryCodeSimpleType
      • VehicleSeatLocationCategoryCodeType
      • VehicleSeatType
      • VehicleType
      • WeightMeasureType
      • anyURI
      • boolean
      • date
      • dateTime
      • gYear
      • nonNegativeInteger
      • string

    Class CertUtils

    Static class containing miscellaneous fuctions for using X.509 certificates in an NG9-1-1 system.

    Inheritance
    object
    CertUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Ng911CertUtils
    Assembly: Ng911Lib.dll
    Syntax
    public static class CertUtils

    Methods

    | Edit this page View Source

    AddNg911San(Ng911SanParams, CertificateRequest)

    Adds the Subject Alternate Name (SAN) extension to a CertificateRequest that contains the otherName sequence that contains the ID type, ID, roles and owner information for building a new X.509 certificate for use in NG9-1-1 systems. See Section 7.1.2.11 of "Public Safety Answering Point (PSAP) Credentialing Agency (PCA) Certificate Policy, v1.01" and Section 4.2.1.6 of RFC 5280.

    Declaration
    public static void AddNg911San(Ng911SanParams Params, CertificateRequest req)
    Parameters
    Type Name Description
    Ng911SanParams Params

    Input parameters to use to build the otherName sequence to add to the SAN extension.

    CertificateRequest req

    Input CertificateRequest to add the SAN extension to.

    | Edit this page View Source

    CreateEcdsaSelfSignedCertificate(DistinguishedNameParams, KeyUsageParams, Ng911SanParams, int, string, bool, out Exception)

    Creates an ECDSA (Elliptic Curve Digital Signature Algorithm) self-signed X.509 certificate with a private key.

    Declaration
    public static X509Certificate2 CreateEcdsaSelfSignedCertificate(DistinguishedNameParams Dnp, KeyUsageParams Kup, Ng911SanParams Nsp, int ExpiresYears, string strPw, bool IsCa, out Exception Ex)
    Parameters
    Type Name Description
    DistinguishedNameParams Dnp

    Contains the parameters for building the distinguished name that will be used in the Subject certificate extension.

    KeyUsageParams Kup

    Contains the parameters for the key usage extension.

    Ng911SanParams Nsp

    Contains the parameters for building the identity and roles to be contained in the otherName field of the Subject Alternate Name (SAN) certificate extension. This parameter may be null if a SAN extension is not needed.

    int ExpiresYears

    Specifies the number of years that the certificate will be valid for.

    string strPw

    Password for the private key of the certificate

    bool IsCa

    If true then the self-signed certificate can be used to sign other certificates.

    Exception Ex

    If an exception occurred then the Ex output parameter is set to the exception that was caught.

    Returns
    Type Description
    X509Certificate2

    Returns a new X.509 certificate with a private key. Set to null if the Ex output parameter is non-null.

    | Edit this page View Source

    CreateEcdsaSelfSignedCertificate(DistinguishedNameParams, KeyUsageParams, Ng911SanParams, int, string, string, string, bool, out Exception)

    Creates an ECDSA self-signed X.509 certificate with a private key. This function writes the certificate containing a private key to a *.pfx file and the certificate without the private key to a *.cer file.

    Declaration
    public static void CreateEcdsaSelfSignedCertificate(DistinguishedNameParams Dnp, KeyUsageParams Kup, Ng911SanParams Nsp, int ExpiresYears, string strPw, string strDir, string strFileNameNoExtension, bool IsCa, out Exception Ex)
    Parameters
    Type Name Description
    DistinguishedNameParams Dnp

    Contains the parameters for building the distinguished name that will be used in the Subject certificate extension.

    KeyUsageParams Kup

    Contains the parameters for the key usage extension.

    Ng911SanParams Nsp

    Contains the parameters for building the identity and roles to be contained in the otherName field of the Subject Alternate Name (SAN) certificate extension. This parameter may be null if a SAN extension is not needed.

    int ExpiresYears

    Specifies the number of years that the certificate will be valid for.

    string strPw

    Password for the private key of the certificate

    string strDir

    Directory in which to save the certificate files. Must already exist.

    string strFileNameNoExtension

    File name for the files with no extension.

    bool IsCa

    If true then the self-signed certificate can be used to sign other certificates.

    Exception Ex

    If an exception occurred then the Ex output parameter is set to the exception that was caught.

    | Edit this page View Source

    CreateEcdsaSignedCertificate(X509Certificate2, DistinguishedNameParams, KeyUsageParams, Ng911SanParams, bool, out Exception)

    Creates an ECDSA (Elliptic Curve Digital Signature Algorithm) signed X.509 certificate with a private key.

    Declaration
    public static X509Certificate2 CreateEcdsaSignedCertificate(X509Certificate2 Root, DistinguishedNameParams Dnp, KeyUsageParams Kup, Ng911SanParams Nsp, bool IsCa, out Exception Ex)
    Parameters
    Type Name Description
    X509Certificate2 Root

    X.509 certificate to use for signing the new certificate.

    DistinguishedNameParams Dnp

    Contains the parameters for building the distinguished name that will be used in the Subject certificate extension.

    KeyUsageParams Kup

    Contains the parameters for the key usage extension.

    Ng911SanParams Nsp

    Contains the parameters for building the identity and roles to be contained in the otherName field of the Subject Alternate Name (SAN) certificate extension. This parameter may be null if a SAN extension is not needed.

    bool IsCa

    If true then the certificate can be used to sign other certificates.

    Exception Ex

    If an exception occurred then the Ex output parameter is set to the exception that was caught.

    Returns
    Type Description
    X509Certificate2

    A signed X.509 certificate with a private key. Returns null if an exception occured.

    | Edit this page View Source

    CreateEcdsaSignedCertificate(X509Certificate2, DistinguishedNameParams, KeyUsageParams, Ng911SanParams, string, string, string, bool, out Exception)

    Creates an ECDSA (Elliptic Curve Digital Signature Algorithm) signed X.509 certificate. This function writes the certificate containing a private key to a *.pfx file and the certificate without the private key to a *.cer file.

    Declaration
    public static void CreateEcdsaSignedCertificate(X509Certificate2 Root, DistinguishedNameParams Dnp, KeyUsageParams Kup, Ng911SanParams Nsp, string strPw, string strDir, string fileNameNoExtension, bool IsCa, out Exception Ex)
    Parameters
    Type Name Description
    X509Certificate2 Root

    X.509 certificate to use for signing the new certificate.

    DistinguishedNameParams Dnp

    Contains the parameters for building the distinguished name that will be used in the Subject certificate extension.

    KeyUsageParams Kup

    Contains the parameters for the key usage extension.

    Ng911SanParams Nsp

    Contains the parameters for building the identity and roles to be contained in the otherName field of the Subject Alternate Name (SAN) certificate extension. This parameter may be null if a SAN extension is not needed.

    string strPw

    Password for the private key of the certificate.

    string strDir

    Directory in which to store the certificate files.

    string fileNameNoExtension

    Filename with no extension for the certificate files.

    bool IsCa

    If true then the certificate can be used to sign other certificates.

    Exception Ex

    If an exception occurred then the Ex output parameter is set to the exception that was caught.

    | Edit this page View Source

    CreateRsaSelfSignedCertificate(DistinguishedNameParams, KeyUsageParams, Ng911SanParams, int, string, bool, out Exception)

    Creates a RSA self-signed X.509 certificate with a private key. This function creates an RSA key that is 2048 bits in length and uses the SHA 512 bit hash algorithm.

    Declaration
    public static X509Certificate2 CreateRsaSelfSignedCertificate(DistinguishedNameParams Dnp, KeyUsageParams Kup, Ng911SanParams Nsp, int ExpiresYears, string strPw, bool IsCa, out Exception Ex)
    Parameters
    Type Name Description
    DistinguishedNameParams Dnp

    Contains the parameters for building the distinguished name that will be used in the Subject certificate extension.

    KeyUsageParams Kup

    Contains the parameters for the key usage extension.

    Ng911SanParams Nsp

    Contains the parameters for building the identity and roles to be contained in the otherName field of the Subject Alternate Name (SAN) certificate extension. This parameter may be null if a SAN extension is not needed.

    int ExpiresYears

    Specifies the number of years that the certificate will be valid for.

    string strPw

    Password for the private key of the certificate

    bool IsCa

    If true then the self-signed certificate can be used to sign other certificates.

    Exception Ex

    If an exception occurred then the Ex output parameter is set to the exception that was caught. If this output is non-null, the return value will be null.

    Returns
    Type Description
    X509Certificate2

    Returns a new X.509 certificate with a private key. Set to null if the Ex output parameter is non-null.

    | Edit this page View Source

    CreateRsaSelfSignedCertificate(DistinguishedNameParams, KeyUsageParams, Ng911SanParams, int, string, string, string, bool, out Exception)

    Creates a RSA self-signed X.509 certificates containing a private key. This function writes the certificate containing a private key to a *.pfx file and the certificate without the private key to a *.cer file. This function creates an RSA key that is 2048 bits in length and uses the SHA 512 bit hash algorithm.

    Declaration
    public static void CreateRsaSelfSignedCertificate(DistinguishedNameParams Dnp, KeyUsageParams Kup, Ng911SanParams Nsp, int ExpiresYears, string strPw, string strDir, string strFileNameNoExtension, bool IsCa, out Exception Ex)
    Parameters
    Type Name Description
    DistinguishedNameParams Dnp

    Contains the parameters for building the distinguished name that will be used in the Subject certificate extension.

    KeyUsageParams Kup

    Contains the parameters for the key usage extension.

    Ng911SanParams Nsp

    Contains the parameters for building the identity and roles to be contained in the otherName field of the Subject Alternate Name (SAN) certificate extension. This parameter may be null if a SAN extension is not needed.

    int ExpiresYears

    Specifies the number of years that the certificate will be valid for.

    string strPw

    Password for the private key of the certificate

    string strDir

    Directory in which to save the certificate files. Must already exist.

    string strFileNameNoExtension

    File name for the files with no extension.

    bool IsCa

    If true then the self-signed certificate can be used to sign other certificates.

    Exception Ex

    If an exception occurred then the Ex output parameter is set to the exception that was caught.

    | Edit this page View Source

    CreateRsaSignedCertificate(X509Certificate2, DistinguishedNameParams, KeyUsageParams, Ng911SanParams, string, bool, out Exception)

    Creates an RSA signed X.509 certificate with a private key. This function creates an RSA key that is 2048 bits in length and uses the SHA 512 bit hash algorithm.

    Declaration
    public static X509Certificate2 CreateRsaSignedCertificate(X509Certificate2 Root, DistinguishedNameParams Dnp, KeyUsageParams Kup, Ng911SanParams Nsp, string strPw, bool IsCa, out Exception Ex)
    Parameters
    Type Name Description
    X509Certificate2 Root

    X.509 certificate to use for signing the new certificate.

    DistinguishedNameParams Dnp

    Contains the parameters for building the distinguished name that will be used in the Subject certificate extension.

    KeyUsageParams Kup

    Contains the parameters for the key usage extension.

    Ng911SanParams Nsp

    Contains the parameters for building the identity and roles to be contained in the otherName field of the Subject Alternate Name (SAN) certificate extension. This parameter may be null if a SAN extension is not needed.

    string strPw

    Password for the private key of the certificate

    bool IsCa

    If true, then the new certificate can be used to sign other certificates

    Exception Ex

    Output. Set to an exception object if an exception occurred. Null if an exception did not occur.

    Returns
    Type Description
    X509Certificate2

    Returns a new X.509 certificate with a private key. Returns null if an exception occured.

    | Edit this page View Source

    CreateRsaSignedCertificate(X509Certificate2, DistinguishedNameParams, KeyUsageParams, Ng911SanParams, string, string, string, bool, out Exception)

    Creates an RSA signed X.509 certificate. This function writes the certificate containing a private key to a *.pfx file and the certificate without the private key to a *.cer file. This function creates an RSA key that is 2048 bits in length and uses the SHA 512 bit hash algorithm.

    Declaration
    public static void CreateRsaSignedCertificate(X509Certificate2 Root, DistinguishedNameParams Dnp, KeyUsageParams Kup, Ng911SanParams Nsp, string strPw, string strDir, string strFileNameNoExtension, bool IsCa, out Exception Ex)
    Parameters
    Type Name Description
    X509Certificate2 Root

    X.509 certificate to use for signing the new certificate.

    DistinguishedNameParams Dnp

    Contains the parameters for building the distinguished name that will be used in the Subject certificate extension.

    KeyUsageParams Kup

    Contains the parameters for the key usage extension.

    Ng911SanParams Nsp

    Contains the parameters for building the identity and roles to be contained in the otherName field of the Subject Alternate Name (SAN) certificate extension. This parameter may be null if a SAN extension is not needed.

    string strPw

    Password for the private key of the certificate

    string strDir

    Directory in which to save the certificate files.

    string strFileNameNoExtension

    File name for the files with no extension.

    bool IsCa

    If true then the certificate can be used to sign other certificates.

    Exception Ex

    If an exception occurred then the Ex output parameter is set to the exception that was caught.

    | Edit this page View Source

    GetOtherNameParams(X509Certificate2)

    In NG9-1-1, the otherName sequence within the Subject Alternate Name (SAN) certificate extension is used to pass the identity and roles roles of an entity. This function reads an X.509 certificate and extracts this information from it. See Section 7.1.2.11 of "Public Safety Answering Point (PSAP) Credentialing Agency (PCA) Certificate Policy, v1.01" and Section 4.2.1.6 of RFC 5280.

    Declaration
    public static Ng911SanParams GetOtherNameParams(X509Certificate2 Cert)
    Parameters
    Type Name Description
    X509Certificate2 Cert

    Input certificate.

    Returns
    Type Description
    Ng911SanParams

    Returns a Ng911SanParameters object containing the identity and roles in the X.509 certificate.

    Exceptions
    Type Condition
    AsnContentException
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX