gi-gio
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.TlsCertificate

Description

A certificate used for TLS authentication and encryption. This can represent either a certificate only (eg, the certificate received by a client from a server), or the combination of a certificate and a private key (which is needed when acting as a TlsServerConnection).

Since: 2.28

Synopsis

Exported types

newtype TlsCertificate Source #

Memory-managed wrapper type.

Instances

Instances details
Eq TlsCertificate Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

GObject TlsCertificate Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

ManagedPtrNewtype TlsCertificate Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

TypedObject TlsCertificate Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

Methods

glibType :: IO GType #

HasParentTypes TlsCertificate Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

HasAttributeList TlsCertificate Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

(info ~ ResolveTlsCertificateMethod t TlsCertificate, OverloadedMethod info TlsCertificate p, HasField t TlsCertificate p) => HasField (t :: Symbol) TlsCertificate (p :: Type) Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

Methods

getField :: TlsCertificate -> p #

(info ~ ResolveTlsCertificateMethod t TlsCertificate, OverloadedMethodInfo info TlsCertificate) => IsLabel t (MethodProxy info TlsCertificate) Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

(info ~ ResolveTlsCertificateMethod t TlsCertificate, OverloadedMethod info TlsCertificate p) => IsLabel t (TlsCertificate -> p) Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

Methods

fromLabel :: TlsCertificate -> p #

IsGValue (Maybe TlsCertificate) Source #

Convert TlsCertificate to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttributeList TlsCertificate Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type ParentTypes TlsCertificate Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type SignalList TlsCertificate Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

class (GObject o, IsDescendantOf TlsCertificate o) => IsTlsCertificate o Source #

Type class for types which can be safely cast to TlsCertificate, for instance with toTlsCertificate.

Instances

Instances details
(GObject o, IsDescendantOf TlsCertificate o) => IsTlsCertificate o Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

toTlsCertificate :: (MonadIO m, IsTlsCertificate o) => o -> m TlsCertificate Source #

Cast to TlsCertificate, for types for which this is known to be safe. For general casts, use castTo.

Methods

type family ResolveTlsCertificateMethod (t :: Symbol) o where ... Source #

Equations

ResolveTlsCertificateMethod "bindProperty" o = ObjectBindPropertyMethodInfo 
ResolveTlsCertificateMethod "bindPropertyFull" o = ObjectBindPropertyFullMethodInfo 
ResolveTlsCertificateMethod "forceFloating" o = ObjectForceFloatingMethodInfo 
ResolveTlsCertificateMethod "freezeNotify" o = ObjectFreezeNotifyMethodInfo 
ResolveTlsCertificateMethod "getv" o = ObjectGetvMethodInfo 
ResolveTlsCertificateMethod "isFloating" o = ObjectIsFloatingMethodInfo 
ResolveTlsCertificateMethod "isSame" o = TlsCertificateIsSameMethodInfo 
ResolveTlsCertificateMethod "notify" o = ObjectNotifyMethodInfo 
ResolveTlsCertificateMethod "notifyByPspec" o = ObjectNotifyByPspecMethodInfo 
ResolveTlsCertificateMethod "ref" o = ObjectRefMethodInfo 
ResolveTlsCertificateMethod "refSink" o = ObjectRefSinkMethodInfo 
ResolveTlsCertificateMethod "runDispose" o = ObjectRunDisposeMethodInfo 
ResolveTlsCertificateMethod "stealData" o = ObjectStealDataMethodInfo 
ResolveTlsCertificateMethod "stealQdata" o = ObjectStealQdataMethodInfo 
ResolveTlsCertificateMethod "thawNotify" o = ObjectThawNotifyMethodInfo 
ResolveTlsCertificateMethod "unref" o = ObjectUnrefMethodInfo 
ResolveTlsCertificateMethod "verify" o = TlsCertificateVerifyMethodInfo 
ResolveTlsCertificateMethod "watchClosure" o = ObjectWatchClosureMethodInfo 
ResolveTlsCertificateMethod "getData" o = ObjectGetDataMethodInfo 
ResolveTlsCertificateMethod "getDnsNames" o = TlsCertificateGetDnsNamesMethodInfo 
ResolveTlsCertificateMethod "getIpAddresses" o = TlsCertificateGetIpAddressesMethodInfo 
ResolveTlsCertificateMethod "getIssuer" o = TlsCertificateGetIssuerMethodInfo 
ResolveTlsCertificateMethod "getIssuerName" o = TlsCertificateGetIssuerNameMethodInfo 
ResolveTlsCertificateMethod "getNotValidAfter" o = TlsCertificateGetNotValidAfterMethodInfo 
ResolveTlsCertificateMethod "getNotValidBefore" o = TlsCertificateGetNotValidBeforeMethodInfo 
ResolveTlsCertificateMethod "getProperty" o = ObjectGetPropertyMethodInfo 
ResolveTlsCertificateMethod "getQdata" o = ObjectGetQdataMethodInfo 
ResolveTlsCertificateMethod "getSubjectName" o = TlsCertificateGetSubjectNameMethodInfo 
ResolveTlsCertificateMethod "setData" o = ObjectSetDataMethodInfo 
ResolveTlsCertificateMethod "setDataFull" o = ObjectSetDataFullMethodInfo 
ResolveTlsCertificateMethod "setProperty" o = ObjectSetPropertyMethodInfo 
ResolveTlsCertificateMethod l o = MethodResolutionFailed l o :: Type 

getDnsNames

tlsCertificateGetDnsNames Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsCertificate a) 
=> a

cert: a TlsCertificate

-> m (Maybe [Bytes])

Returns: A PtrArray of Bytes elements, or Nothing if it's not available.

Gets the value of TlsCertificate:dnsNames.

Since: 2.70

getIpAddresses

tlsCertificateGetIpAddresses Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsCertificate a) 
=> a

cert: a TlsCertificate

-> m (Maybe [InetAddress])

Returns: A PtrArray of InetAddress elements, or Nothing if it's not available.

Gets the value of TlsCertificate:ipAddresses.

Since: 2.70

getIssuer

tlsCertificateGetIssuer Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsCertificate a) 
=> a

cert: a TlsCertificate

-> m (Maybe TlsCertificate)

Returns: The certificate of cert's issuer, or Nothing if cert is self-signed or signed with an unknown certificate.

Gets the TlsCertificate representing cert's issuer, if known

Since: 2.28

getIssuerName

tlsCertificateGetIssuerName Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsCertificate a) 
=> a

cert: a TlsCertificate

-> m (Maybe Text)

Returns: The issuer name, or Nothing if it's not available.

Returns the issuer name from the certificate.

Since: 2.70

getNotValidAfter

tlsCertificateGetNotValidAfter Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsCertificate a) 
=> a

cert: a TlsCertificate

-> m (Maybe DateTime)

Returns: The not-valid-after date, or Nothing if it's not available.

Returns the time at which the certificate became or will become invalid.

Since: 2.70

getNotValidBefore

tlsCertificateGetNotValidBefore Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsCertificate a) 
=> a

cert: a TlsCertificate

-> m (Maybe DateTime)

Returns: The not-valid-before date, or Nothing if it's not available.

Returns the time at which the certificate became or will become valid.

Since: 2.70

getSubjectName

tlsCertificateGetSubjectName Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsCertificate a) 
=> a

cert: a TlsCertificate

-> m (Maybe Text)

Returns: The subject name, or Nothing if it's not available.

Returns the subject name from the certificate.

Since: 2.70

isSame

tlsCertificateIsSame Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsCertificate a, IsTlsCertificate b) 
=> a

certOne: first certificate to compare

-> b

certTwo: second certificate to compare

-> m Bool

Returns: whether the same or not

Check if two TlsCertificate objects represent the same certificate. The raw DER byte data of the two certificates are checked for equality. This has the effect that two certificates may compare equal even if their TlsCertificate:issuer, TlsCertificate:privateKey, or TlsCertificate:privateKeyPem properties differ.

Since: 2.34

listNewFromFile

tlsCertificateListNewFromFile Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> [Char]

file: file containing PEM-encoded certificates to import

-> m [TlsCertificate]

Returns: a List containing TlsCertificate objects. You must free the list and its contents when you are done with it. (Can throw GError)

Creates one or more GTlsCertificates from the PEM-encoded data in file. If file cannot be read or parsed, the function will return Nothing and set error. If file does not contain any PEM-encoded certificates, this will return an empty list and not set error.

Since: 2.28

newFromFile

tlsCertificateNewFromFile Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> [Char]

file: file containing a certificate to import

-> m TlsCertificate

Returns: the new certificate, or Nothing on error (Can throw GError)

Creates a TlsCertificate from the data in file.

As of 2.72, if the filename ends in .p12 or .pfx the data is loaded by tlsCertificateNewFromPkcs12 otherwise it is loaded by tlsCertificateNewFromPem. See those functions for exact details.

If file cannot be read or parsed, the function will return Nothing and set error.

Since: 2.28

newFromFileWithPassword

tlsCertificateNewFromFileWithPassword Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> [Char]

file: file containing a certificate to import

-> Text

password: password for PKCS 12 files

-> m TlsCertificate

Returns: the new certificate, or Nothing on error (Can throw GError)

Creates a TlsCertificate from the data in file.

If file cannot be read or parsed, the function will return Nothing and set error.

Any unknown file types will error with IOErrorEnumNotSupported. Currently only .p12 and .pfx files are supported. See tlsCertificateNewFromPkcs12 for more details.

Since: 2.72

newFromFiles

tlsCertificateNewFromFiles Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> [Char]

certFile: file containing one or more PEM-encoded certificates to import

-> [Char]

keyFile: file containing a PEM-encoded private key to import

-> m TlsCertificate

Returns: the new certificate, or Nothing on error (Can throw GError)

Creates a TlsCertificate from the PEM-encoded data in certFile and keyFile. The returned certificate will be the first certificate found in certFile. As of GLib 2.44, if certFile contains more certificates it will try to load a certificate chain. All certificates will be verified in the order found (top-level certificate should be the last one in the file) and the TlsCertificate:issuer property of each certificate will be set accordingly if the verification succeeds. If any certificate in the chain cannot be verified, the first certificate in the file will still be returned.

If either file cannot be read or parsed, the function will return Nothing and set error. Otherwise, this behaves like tlsCertificateNewFromPem.

Since: 2.28

newFromPem

tlsCertificateNewFromPem Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

data: PEM-encoded certificate data

-> Int64

length: the length of data, or -1 if it's 0-terminated.

-> m TlsCertificate

Returns: the new certificate, or Nothing if data is invalid (Can throw GError)

Creates a TlsCertificate from the PEM-encoded data in data. If data includes both a certificate and a private key, then the returned certificate will include the private key data as well. (See the TlsCertificate:privateKeyPem property for information about supported formats.)

The returned certificate will be the first certificate found in data. As of GLib 2.44, if data contains more certificates it will try to load a certificate chain. All certificates will be verified in the order found (top-level certificate should be the last one in the file) and the TlsCertificate:issuer property of each certificate will be set accordingly if the verification succeeds. If any certificate in the chain cannot be verified, the first certificate in the file will still be returned.

Since: 2.28

newFromPkcs11Uris

tlsCertificateNewFromPkcs11Uris Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

pkcs11Uri: A PKCS #11 URI

-> Maybe Text

privateKeyPkcs11Uri: A PKCS #11 URI

-> m TlsCertificate

Returns: the new certificate, or Nothing on error (Can throw GError)

Creates a TlsCertificate from a PKCS #11 URI.

An example pkcs11Uri would be pkcs11:model=Model;manufacturer=Manufacture;serial=1;token=My%20Client%20Certificate;id=%01

Where the token’s layout is:

Object 0:
  URL: pkcs11:model=Model;manufacturer=Manufacture;serial=1;token=My%20Client%20Certificate;id=%01;object=private%20key;type=private
  Type: Private key (RSA-2048)
  ID: 01

Object 1:
  URL: pkcs11:model=Model;manufacturer=Manufacture;serial=1;token=My%20Client%20Certificate;id=%01;object=Certificate%20for%20Authentication;type=cert
  Type: X.509 Certificate (RSA-2048)
  ID: 01

In this case the certificate and private key would both be detected and used as expected. pkcsUri may also just reference an X.509 certificate object and then optionally privateKeyPkcs11Uri allows using a private key exposed under a different URI.

Note that the private key is not accessed until usage and may fail or require a PIN later.

Since: 2.68

newFromPkcs12

tlsCertificateNewFromPkcs12 Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> ByteString

data: DER-encoded PKCS 12 format certificate data

-> Maybe Text

password: optional password for encrypted certificate data

-> m TlsCertificate

Returns: the new certificate, or Nothing if data is invalid (Can throw GError)

Creates a TlsCertificate from the data in data. It must contain a certificate and matching private key.

If extra certificates are included they will be verified as a chain and the TlsCertificate:issuer property will be set. All other data will be ignored.

You can pass as single password for all of the data which will be used both for the PKCS 12 container as well as encrypted private keys. If decryption fails it will error with TlsErrorBadCertificatePassword.

This constructor requires support in the current TlsBackend. If support is missing it will error with IOErrorEnumNotSupported.

Other parsing failures will error with TlsErrorBadCertificate.

Since: 2.72

verify

tlsCertificateVerify Source #

Arguments

:: (HasCallStack, MonadIO m, IsTlsCertificate a, IsSocketConnectable b, IsTlsCertificate c) 
=> a

cert: a TlsCertificate

-> Maybe b

identity: the expected peer identity

-> Maybe c

trustedCa: the certificate of a trusted authority

-> m [TlsCertificateFlags]

Returns: the appropriate TlsCertificateFlags

This verifies cert and returns a set of TlsCertificateFlags indicating any problems found with it. This can be used to verify a certificate outside the context of making a connection, or to check a certificate against a CA that is not part of the system CA database.

If cert is valid, TlsCertificateFlagsNoFlags is returned.

If identity is not Nothing, cert's name(s) will be compared against it, and TlsCertificateFlagsBadIdentity will be set in the return value if it does not match. If identity is Nothing, that bit will never be set in the return value.

If trustedCa is not Nothing, then cert (or one of the certificates in its chain) must be signed by it, or else TlsCertificateFlagsUnknownCa will be set in the return value. If trustedCa is Nothing, that bit will never be set in the return value.

GLib guarantees that if certificate verification fails, at least one error will be set in the return value, but it does not guarantee that all possible errors will be set. Accordingly, you may not safely decide to ignore any particular type of error. For example, it would be incorrect to mask TlsCertificateFlagsExpired if you want to allow expired certificates, because this could potentially be the only error flag set even if other problems exist with the certificate.

Because TLS session context is not used, TlsCertificate may not perform as many checks on the certificates as TlsConnection would. For example, certificate constraints may not be honored, and revocation checks may not be performed. The best way to verify TLS certificates used by a TLS connection is to let TlsConnection handle the verification.

Since: 2.28

Properties

certificate

The DER (binary) encoded representation of the certificate. This property and the TlsCertificate:certificatePem property represent the same data, just in different forms.

Since: 2.28

data TlsCertificateCertificatePropertyInfo Source #

Instances

Instances details
AttrInfo TlsCertificateCertificatePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

Associated Types

type AttrAllowedOps TlsCertificateCertificatePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificateCertificatePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificateCertificatePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificateCertificatePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificateCertificatePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificateCertificatePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificateCertificatePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificateCertificatePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrAllowedOps TlsCertificateCertificatePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificateCertificatePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificateCertificatePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificateCertificatePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificateCertificatePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificateCertificatePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificateCertificatePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificateCertificatePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

constructTlsCertificateCertificate :: (IsTlsCertificate o, MonadIO m) => ByteString -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “certificate” property. This is rarely needed directly, but it is used by new.

getTlsCertificateCertificate :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe ByteString) Source #

Get the value of the “certificate” property. When overloading is enabled, this is equivalent to

get tlsCertificate #certificate

certificatePem

The PEM (ASCII) encoded representation of the certificate. This property and the TlsCertificate:certificate property represent the same data, just in different forms.

Since: 2.28

data TlsCertificateCertificatePemPropertyInfo Source #

Instances

Instances details
AttrInfo TlsCertificateCertificatePemPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

Associated Types

type AttrAllowedOps TlsCertificateCertificatePemPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificateCertificatePemPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificateCertificatePemPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificateCertificatePemPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificateCertificatePemPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificateCertificatePemPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificateCertificatePemPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificateCertificatePemPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrAllowedOps TlsCertificateCertificatePemPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificateCertificatePemPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificateCertificatePemPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificateCertificatePemPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificateCertificatePemPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificateCertificatePemPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificateCertificatePemPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificateCertificatePemPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

constructTlsCertificateCertificatePem :: (IsTlsCertificate o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “certificate-pem” property. This is rarely needed directly, but it is used by new.

getTlsCertificateCertificatePem :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe Text) Source #

Get the value of the “certificate-pem” property. When overloading is enabled, this is equivalent to

get tlsCertificate #certificatePem

dnsNames

data TlsCertificateDnsNamesPropertyInfo Source #

Instances

Instances details
AttrInfo TlsCertificateDnsNamesPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrAllowedOps TlsCertificateDnsNamesPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificateDnsNamesPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificateDnsNamesPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificateDnsNamesPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificateDnsNamesPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificateDnsNamesPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificateDnsNamesPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificateDnsNamesPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

ipAddresses

data TlsCertificateIpAddressesPropertyInfo Source #

Instances

Instances details
AttrInfo TlsCertificateIpAddressesPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

Associated Types

type AttrAllowedOps TlsCertificateIpAddressesPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificateIpAddressesPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificateIpAddressesPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificateIpAddressesPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificateIpAddressesPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificateIpAddressesPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificateIpAddressesPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificateIpAddressesPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrAllowedOps TlsCertificateIpAddressesPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificateIpAddressesPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificateIpAddressesPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificateIpAddressesPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificateIpAddressesPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificateIpAddressesPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificateIpAddressesPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificateIpAddressesPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

issuer

A TlsCertificate representing the entity that issued this certificate. If Nothing, this means that the certificate is either self-signed, or else the certificate of the issuer is not available.

Beware the issuer certificate may not be the same as the certificate that would actually be used to construct a valid certification path during certificate verification. RFC 4158 explains why an issuer certificate cannot be naively assumed to be part of the the certification path (though GLib's TLS backends may not follow the path building strategies outlined in this RFC). Due to the complexity of certification path building, GLib does not provide any way to know which certification path will actually be used. Accordingly, this property cannot be used to make security-related decisions. Only GLib itself should make security decisions about TLS certificates.

Since: 2.28

data TlsCertificateIssuerPropertyInfo Source #

Instances

Instances details
AttrInfo TlsCertificateIssuerPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

Associated Types

type AttrAllowedOps TlsCertificateIssuerPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificateIssuerPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificateIssuerPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificateIssuerPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificateIssuerPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificateIssuerPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificateIssuerPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificateIssuerPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrAllowedOps TlsCertificateIssuerPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificateIssuerPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificateIssuerPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificateIssuerPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificateIssuerPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificateIssuerPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificateIssuerPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificateIssuerPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

constructTlsCertificateIssuer :: (IsTlsCertificate o, MonadIO m, IsTlsCertificate a) => a -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “issuer” property. This is rarely needed directly, but it is used by new.

getTlsCertificateIssuer :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe TlsCertificate) Source #

Get the value of the “issuer” property. When overloading is enabled, this is equivalent to

get tlsCertificate #issuer

issuerName

The issuer from the certificate, Nothing if unavailable.

Since: 2.70

data TlsCertificateIssuerNamePropertyInfo Source #

Instances

Instances details
AttrInfo TlsCertificateIssuerNamePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

Associated Types

type AttrAllowedOps TlsCertificateIssuerNamePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificateIssuerNamePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificateIssuerNamePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificateIssuerNamePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificateIssuerNamePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificateIssuerNamePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificateIssuerNamePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificateIssuerNamePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrAllowedOps TlsCertificateIssuerNamePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificateIssuerNamePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificateIssuerNamePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificateIssuerNamePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificateIssuerNamePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificateIssuerNamePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificateIssuerNamePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificateIssuerNamePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

getTlsCertificateIssuerName :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe Text) Source #

Get the value of the “issuer-name” property. When overloading is enabled, this is equivalent to

get tlsCertificate #issuerName

notValidAfter

The time at which this cert is no longer valid, Nothing if unavailable.

Since: 2.70

data TlsCertificateNotValidAfterPropertyInfo Source #

Instances

Instances details
AttrInfo TlsCertificateNotValidAfterPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

Associated Types

type AttrAllowedOps TlsCertificateNotValidAfterPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificateNotValidAfterPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificateNotValidAfterPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificateNotValidAfterPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificateNotValidAfterPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificateNotValidAfterPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificateNotValidAfterPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificateNotValidAfterPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrAllowedOps TlsCertificateNotValidAfterPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificateNotValidAfterPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificateNotValidAfterPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificateNotValidAfterPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificateNotValidAfterPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificateNotValidAfterPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificateNotValidAfterPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificateNotValidAfterPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

getTlsCertificateNotValidAfter :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe DateTime) Source #

Get the value of the “not-valid-after” property. When overloading is enabled, this is equivalent to

get tlsCertificate #notValidAfter

notValidBefore

The time at which this cert is considered to be valid, Nothing if unavailable.

Since: 2.70

data TlsCertificateNotValidBeforePropertyInfo Source #

Instances

Instances details
AttrInfo TlsCertificateNotValidBeforePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

Associated Types

type AttrAllowedOps TlsCertificateNotValidBeforePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificateNotValidBeforePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificateNotValidBeforePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificateNotValidBeforePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificateNotValidBeforePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificateNotValidBeforePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificateNotValidBeforePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificateNotValidBeforePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrAllowedOps TlsCertificateNotValidBeforePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificateNotValidBeforePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificateNotValidBeforePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificateNotValidBeforePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificateNotValidBeforePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificateNotValidBeforePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificateNotValidBeforePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificateNotValidBeforePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

getTlsCertificateNotValidBefore :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe DateTime) Source #

Get the value of the “not-valid-before” property. When overloading is enabled, this is equivalent to

get tlsCertificate #notValidBefore

password

An optional password used when constructed with GTlsCertificate:pkcs12-data.

Since: 2.72

data TlsCertificatePasswordPropertyInfo Source #

Instances

Instances details
AttrInfo TlsCertificatePasswordPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

Associated Types

type AttrAllowedOps TlsCertificatePasswordPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificatePasswordPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificatePasswordPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificatePasswordPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificatePasswordPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificatePasswordPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificatePasswordPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificatePasswordPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrAllowedOps TlsCertificatePasswordPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificatePasswordPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificatePasswordPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificatePasswordPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificatePasswordPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificatePasswordPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificatePasswordPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificatePasswordPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

constructTlsCertificatePassword :: (IsTlsCertificate o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “password” property. This is rarely needed directly, but it is used by new.

pkcs11Uri

A URI referencing the PKCS #11 objects containing an X.509 certificate and optionally a private key.

If Nothing, the certificate is either not backed by PKCS #11 or the TlsBackend does not support PKCS #11.

Since: 2.68

data TlsCertificatePkcs11UriPropertyInfo Source #

Instances

Instances details
AttrInfo TlsCertificatePkcs11UriPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

Associated Types

type AttrAllowedOps TlsCertificatePkcs11UriPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificatePkcs11UriPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificatePkcs11UriPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificatePkcs11UriPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificatePkcs11UriPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificatePkcs11UriPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificatePkcs11UriPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificatePkcs11UriPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrAllowedOps TlsCertificatePkcs11UriPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificatePkcs11UriPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificatePkcs11UriPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificatePkcs11UriPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificatePkcs11UriPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificatePkcs11UriPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificatePkcs11UriPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificatePkcs11UriPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

constructTlsCertificatePkcs11Uri :: (IsTlsCertificate o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “pkcs11-uri” property. This is rarely needed directly, but it is used by new.

getTlsCertificatePkcs11Uri :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe Text) Source #

Get the value of the “pkcs11-uri” property. When overloading is enabled, this is equivalent to

get tlsCertificate #pkcs11Uri

pkcs12Data

The PKCS 12 formatted data used to construct the object.

See also: tlsCertificateNewFromPkcs12

Since: 2.72

data TlsCertificatePkcs12DataPropertyInfo Source #

Instances

Instances details
AttrInfo TlsCertificatePkcs12DataPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

Associated Types

type AttrAllowedOps TlsCertificatePkcs12DataPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificatePkcs12DataPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificatePkcs12DataPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificatePkcs12DataPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificatePkcs12DataPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificatePkcs12DataPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificatePkcs12DataPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificatePkcs12DataPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrAllowedOps TlsCertificatePkcs12DataPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificatePkcs12DataPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificatePkcs12DataPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificatePkcs12DataPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificatePkcs12DataPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificatePkcs12DataPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificatePkcs12DataPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificatePkcs12DataPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

constructTlsCertificatePkcs12Data :: (IsTlsCertificate o, MonadIO m) => ByteString -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “pkcs12-data” property. This is rarely needed directly, but it is used by new.

privateKey

The DER (binary) encoded representation of the certificate's private key, in either PKCS #1 format or unencrypted PKCS #8 format. PKCS #8 format is supported since 2.32; earlier releases only support PKCS #1. You can use the openssl rsa tool to convert PKCS #8 keys to PKCS #1.

This property (or the TlsCertificate:privateKeyPem property) can be set when constructing a key (for example, from a file). Since GLib 2.70, it is now also readable; however, be aware that if the private key is backed by a PKCS #11 URI – for example, if it is stored on a smartcard – then this property will be Nothing. If so, the private key must be referenced via its PKCS #11 URI, TlsCertificate:privateKeyPkcs11Uri. You must check both properties to see if the certificate really has a private key. When this property is read, the output format will be unencrypted PKCS #8.

Since: 2.28

data TlsCertificatePrivateKeyPropertyInfo Source #

Instances

Instances details
AttrInfo TlsCertificatePrivateKeyPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

Associated Types

type AttrAllowedOps TlsCertificatePrivateKeyPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificatePrivateKeyPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificatePrivateKeyPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificatePrivateKeyPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificatePrivateKeyPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificatePrivateKeyPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificatePrivateKeyPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificatePrivateKeyPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrAllowedOps TlsCertificatePrivateKeyPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificatePrivateKeyPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificatePrivateKeyPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificatePrivateKeyPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificatePrivateKeyPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificatePrivateKeyPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificatePrivateKeyPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificatePrivateKeyPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

constructTlsCertificatePrivateKey :: (IsTlsCertificate o, MonadIO m) => ByteString -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “private-key” property. This is rarely needed directly, but it is used by new.

getTlsCertificatePrivateKey :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe ByteString) Source #

Get the value of the “private-key” property. When overloading is enabled, this is equivalent to

get tlsCertificate #privateKey

privateKeyPem

The PEM (ASCII) encoded representation of the certificate's private key in either PKCS #1 format ("BEGIN RSA PRIVATE KEY") or unencrypted PKCS #8 format ("BEGIN PRIVATE KEY"). PKCS #8 format is supported since 2.32; earlier releases only support PKCS #1. You can use the openssl rsa tool to convert PKCS #8 keys to PKCS #1.

This property (or the TlsCertificate:privateKey property) can be set when constructing a key (for example, from a file). Since GLib 2.70, it is now also readable; however, be aware that if the private key is backed by a PKCS #11 URI - for example, if it is stored on a smartcard - then this property will be Nothing. If so, the private key must be referenced via its PKCS #11 URI, TlsCertificate:privateKeyPkcs11Uri. You must check both properties to see if the certificate really has a private key. When this property is read, the output format will be unencrypted PKCS #8.

Since: 2.28

data TlsCertificatePrivateKeyPemPropertyInfo Source #

Instances

Instances details
AttrInfo TlsCertificatePrivateKeyPemPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

Associated Types

type AttrAllowedOps TlsCertificatePrivateKeyPemPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificatePrivateKeyPemPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificatePrivateKeyPemPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificatePrivateKeyPemPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificatePrivateKeyPemPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificatePrivateKeyPemPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificatePrivateKeyPemPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificatePrivateKeyPemPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrAllowedOps TlsCertificatePrivateKeyPemPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificatePrivateKeyPemPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificatePrivateKeyPemPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificatePrivateKeyPemPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificatePrivateKeyPemPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificatePrivateKeyPemPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificatePrivateKeyPemPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificatePrivateKeyPemPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

constructTlsCertificatePrivateKeyPem :: (IsTlsCertificate o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “private-key-pem” property. This is rarely needed directly, but it is used by new.

getTlsCertificatePrivateKeyPem :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe Text) Source #

Get the value of the “private-key-pem” property. When overloading is enabled, this is equivalent to

get tlsCertificate #privateKeyPem

privateKeyPkcs11Uri

A URI referencing a PKCS #11 object containing a private key.

Since: 2.68

data TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source #

Instances

Instances details
AttrInfo TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

Associated Types

type AttrAllowedOps TlsCertificatePrivateKeyPkcs11UriPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificatePrivateKeyPkcs11UriPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificatePrivateKeyPkcs11UriPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificatePrivateKeyPkcs11UriPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificatePrivateKeyPkcs11UriPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificatePrivateKeyPkcs11UriPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificatePrivateKeyPkcs11UriPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificatePrivateKeyPkcs11UriPropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrAllowedOps TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificatePrivateKeyPkcs11UriPropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

constructTlsCertificatePrivateKeyPkcs11Uri :: (IsTlsCertificate o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “private-key-pkcs11-uri” property. This is rarely needed directly, but it is used by new.

getTlsCertificatePrivateKeyPkcs11Uri :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe Text) Source #

Get the value of the “private-key-pkcs11-uri” property. When overloading is enabled, this is equivalent to

get tlsCertificate #privateKeyPkcs11Uri

subjectName

The subject from the cert, Nothing if unavailable.

Since: 2.70

data TlsCertificateSubjectNamePropertyInfo Source #

Instances

Instances details
AttrInfo TlsCertificateSubjectNamePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

Associated Types

type AttrAllowedOps TlsCertificateSubjectNamePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificateSubjectNamePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificateSubjectNamePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificateSubjectNamePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificateSubjectNamePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificateSubjectNamePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificateSubjectNamePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificateSubjectNamePropertyInfo 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrAllowedOps TlsCertificateSubjectNamePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrBaseTypeConstraint TlsCertificateSubjectNamePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrGetType TlsCertificateSubjectNamePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrLabel TlsCertificateSubjectNamePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrOrigin TlsCertificateSubjectNamePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrSetTypeConstraint TlsCertificateSubjectNamePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferType TlsCertificateSubjectNamePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

type AttrTransferTypeConstraint TlsCertificateSubjectNamePropertyInfo Source # 
Instance details

Defined in GI.Gio.Objects.TlsCertificate

getTlsCertificateSubjectName :: (MonadIO m, IsTlsCertificate o) => o -> m (Maybe Text) Source #

Get the value of the “subject-name” property. When overloading is enabled, this is equivalent to

get tlsCertificate #subjectName