tuweni / org.apache.tuweni.net.tls / VertxTrustOptions / recordServerFingerprints

recordServerFingerprints

static fun recordServerFingerprints(knownServersFile: Path!): TrustOptions! (source)

Accept all server certificates, recording certificate fingerprints for those that are not CA-signed.

Excepting when a server presents a CA-signed certificate, the server host+port and the certificate fingerprint will be written to knownServersFile.

Important: this provides no security as it is vulnerable to man-in-the-middle attacks.

Parameters

knownServersFile - Path!: The path to a file in which to record fingerprints by host.

Return
TrustOptions!: A Vert.x TrustOptions.

static fun recordServerFingerprints(repository: FingerprintRepository!): TrustOptions! (source)

Accept all server certificates, recording certificate fingerprints for those that are not CA-signed.

Excepting when a server presents a CA-signed certificate, the server host+port and the certificate fingerprint will be written to knownServersFile.

Important: this provides no security as it is vulnerable to man-in-the-middle attacks.

Parameters

repository - FingerprintRepository!: The repository in which to record fingerprints by host.

Return
TrustOptions!: A Vert.x TrustOptions.

static fun recordServerFingerprints(knownServersFile: Path!, skipCASigned: Boolean): TrustOptions! (source)

Accept all server certificates, recording certificate fingerprints.

For all connections, the server host+port and the fingerprint of the presented certificate will be written to knownServersFile.

Important: this provides no security as it is vulnerable to man-in-the-middle attacks.

Parameters

knownServersFile - Path!: The path to a file in which to record fingerprints by host.

skipCASigned - Boolean: If true, CA-signed certificates are not recorded.

Return
TrustOptions!: A Vert.x TrustOptions.

static fun recordServerFingerprints(repository: FingerprintRepository!, skipCASigned: Boolean): TrustOptions! (source)

Accept all server certificates, recording certificate fingerprints.

For all connections, the server host+port and the fingerprint of the presented certificate will be written to knownServersFile.

Important: this provides no security as it is vulnerable to man-in-the-middle attacks.

Parameters

repository - FingerprintRepository!: The repository in which to record fingerprints by host.

skipCASigned - Boolean: If true, CA-signed certificates are not recorded.

Return
TrustOptions!: A Vert.x TrustOptions.

static fun recordServerFingerprints(knownServersFile: Path!, tmf: TrustManagerFactory!): TrustOptions! (source)

Accept all server certificates, recording certificate fingerprints for those that are not CA-signed.

Excepting when a server presents a CA-signed certificate, the server host+port and the certificate fingerprint will be written to knownServersFile.

Important: this provides no security as it is vulnerable to man-in-the-middle attacks.

Parameters

knownServersFile - Path!: The path to a file in which to record fingerprints by host.

tmf - TrustManagerFactory!: A TrustManagerFactory for checking server certificates against a CA.

Return
TrustOptions!: A Vert.x TrustOptions.

static fun recordServerFingerprints(repository: FingerprintRepository!, tmf: TrustManagerFactory!): TrustOptions! (source)

Accept all server certificates, recording certificate fingerprints for those that are not CA-signed.

Excepting when a server presents a CA-signed certificate, the server host+port and the certificate fingerprint will be written to knownServersFile.

Important: this provides no security as it is vulnerable to man-in-the-middle attacks.

Parameters

repository - FingerprintRepository!: The repository in which to record fingerprints by host.

tmf - TrustManagerFactory!: A TrustManagerFactory for checking server certificates against a CA.

Return
TrustOptions!: A Vert.x TrustOptions.