Class CertificateValidationRequestReader
The protocol SEEMS to be specified here: http://wiki.squid-cache.org/Features/SslServerCertValidator As it turns out, the last delimiter byte 0x01 is not being sent by our squid version (3.5.12) even though they explicitly explain it here: "...line refers to a logical input. body may contain \n characters so each line in this format is delimited by a 0x01 byte instead of the standard \n byte...." In addition to this strange non documented behaviour, the information about the host IP address is already placed in the first line before any \n or whatsoever 'host=...'
Note: When we configure squid to not use concurrency with our ssl certificate validator (e.g. "sslcrtvalidator_children 1 startup=1 idle=1 concurrency=0") it will not send AND expect any references to IDs (i.e. no request ID and therefore no response ID, because the program is only working on one request at a time)
FIXME : report those problems with e.g. the missing 0x01 byte to the Squid community?
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eblocker.certificate.validator.squid.CertificateValidationMessageReader
CertificateValidationMessageReader.Header -
Field Summary
Fields inherited from class org.eblocker.certificate.validator.squid.CertificateValidationMessageReader
firstLinePattern, KEY_PATTERN, KEY_REGEX, useConcurrency -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CertificateValidationMessagebuildMessage(long ID, String messageType, Map<String, String> map) read(BufferedReader reader) Methods inherited from class org.eblocker.certificate.validator.squid.CertificateValidationMessageReader
getCertificates, getErrorCertIds, getErrorNames, getErrorReasons, getIntegerValues, getStringValues, parseHeader, parseMessage, readKeyValues
-
Constructor Details
-
CertificateValidationRequestReader
public CertificateValidationRequestReader(boolean useConcurrency)
-
-
Method Details
-
read
- Returns:
- null if end of inputstream is reached
-
buildMessage
protected CertificateValidationMessage buildMessage(long ID, String messageType, Map<String, String> map) - Overrides:
buildMessagein classCertificateValidationMessageReader
-