Getting HTTP 405 Error on POST request with X509 certificate authentication.

Document ID : KB000053346
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

On Apache when you Set UP SSL and X509 certificate authentication you can encounter HTTP 405 error if you are not setting the SSL properly.
You will have the following error in the apache error.log:
[error] SSL Re-negotiation in conjunction with POST method not supported! hint: try SSLOptions +OptRenegotiate

Solution:

Change the ssl.conf, adding .fcc|.sfcc in the Files pattern:

 <Files ~ "\.(cgi|fcc|sfcc|shtml|phtml|php3?)$">
 #SSLOptions +StdEnvVars
 #SSLOptions +StdEnvVars +CompatEnvVars
 SSLOptions +OptRenegotiate
 </Files>

And remove the Location for the SSLVerifyClient

#<Location /siteminderagent/certoptional>
SSLVerifyClient optional
SSLVerifyDepth  10
#</Location>