Closed avmusa closed 2 years ago
Unfortunately The ajp13 protocol "spec" states that attributes can only be strings (see https://tomcat.apache.org/connectors-doc-archive/jk2/common/AJPv13.html#Request%20Packet%20Structure ), and I haven't found any documentation regarding the way x509 certs have to be serialized.
Class
com.github.jrialland.ajpclient.Attribute
accepts values ofString
type (Strings list):In case I need to pass other type of the attribute, I get 500 error from the AJP endpoint (embedded tomcat in my case). For example, I need to send request attribute
javax.servlet.request.X509Certificate
of typejava.security.cert.X509Certificate[]
to perform TLS authentication on the backend.I tried to serialize above array to byte array and wrap it to a String but it did not work.