Back to product page
- Introduction
- License Agreement
- Objects
- Certificate
- Methods
- Properties
- BitCount
- CommonName
- Country
- Data
- FriendlyName
- Handle
- HasPrivateKey
- Issuer
- IssuerCommonName
- IssuerCountry
- IssuerEmail
- IssuerLocality
- IssuerOrganization
- IssuerState
- IssuerText
- IssuerUnit
- Locality
- Organization
- PrivateKey
- PublicKey
- PublicKeyOpenSSH
- PublicKeyRSA1
- PublicKeySSH
- SerialNumber
- SerialNumberDec
- SerialNumberHex
- State
- Text
- Unit
- ValidFrom
- ValidTo
- Version
- Certificates
- CertLocation
- CertStores
- Enumerations
- Certificate
- How to get support?
- Tehnical information
- Error list
HasPrivateKey property
Determines if certificate has associated private key.
Type
A Boolean value. Set to True when private key exists.Syntax
- Basic
object.HasPrivateKey
The HasPrivateKey(object) syntax has these parts:
The HasPrivateKey(object) syntax has these parts:
object | An expression evaluating to an object of type Certificate. |
Remarks
When working with certificates that are stored in Microsoft stores (in registry, files, etc..) sometimes you cannot directly access private key data. Rather, Windows just allow you to obtain handle to the key (without actual sensitive data) that should be used for signing, decrypting, etc...To determine if selected certificate will be appropriate to use for the SSL connection, this property must return True. If not, wodCertificate will soon return an error.