I am trying to execute a server module on my internal development IBM i using a self-signed certificate to access an external web service.
I was able to register a self-signed certificate and start the https server.
However, when I try to execute a server module from a web page, it fails with an internal server error.
The Apache log only shows the following error, and no other error information is provided:
[core:error] [pid 13231:tid 0000011A] [client 192.168.1.140:40148] ZSRV_MSG0947: Script output ends before header. File Name: LANSAWEB.PGM, referer: https://192.168.1.7/izmpgmlib/tst/xvlwebtst.html
Has anyone execute Server Module with a self-signed certificate on IBM i?
For reference, my web instance is as follows:
Code: Select all
# LANSA for the Web Apache HTTP Configuration File
LoadModule ibm_ssl_module /QSYS.LIB/QHTTPSVR.LIB/QZSRVSSL.SRVPGM
DirectoryIndex /images/index.html
ScriptAliasMatch ^/cgi-bin/jsmadmin(.*) /QSYS.LIB/IZMJSMLIB.LIB/JSMADMIN.PGM$1
ScriptAliasMatch ^/cgi-bin/jsmproxy(.*) /QSYS.LIB/IZMJSMLIB.LIB/JSMPROXY.PGM$1
ScriptAliasMatch ^/cgi-bin/jsmdirect(.*) /QSYS.LIB/IZMJSMLIB.LIB/JSMDIRECT.PGM$1
DefaultNetCCSID 00943
DefaultFsCCSID 05035
ServerRoot /LANSA_izmpgmlib/webserver/www
DocumentRoot /LANSA_izmpgmlib/webserver/www/htdocs
ServerUserID IZMPGMLIB
# Listen *:07580
Listen *:00443
SSLEngine ON
SSLAppName IZUMI
ScriptAliasMatch ^/cgi-bin/lansaweb(.*) /QSYS.LIB/IZMCOMLIB.LIB/LANSAWEB.PGM$1
ScriptAliasMatch ^/izmpgmlib/lansaweb(.*) /QSYS.LIB/IZMCOMLIB.LIB/LANSAWEB.PGM$1
# ScriptAliasMatch ^/1234567890/lansaweb(.*) /QSYS.LIB/IZMCOMLIB.LIB/LANSAWEB.PGM$1
Alias /images /LANSA_izmpgmlib/webserver/images
Options -ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch -Includes -IncludesNoExec -Indexes -MultiViews
# LogFormat "%h %T %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %T %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{Content-Disposition}i\" \"%{Content-Length}i\" \"%{Content-Type}i\"" combined
LogFormat "%{Cookie}n \"%r\" %t" cookie
LogFormat "%{User-agent}i" agent
LogFormat "%{Referer}i -> %U" referer
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog logs/access_log combined
LogMaint logs/access_log 7 0
LogMaint logs/error_log 7 0
SetEnvIf "User-Agent" ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 forceresponse-1.0
AddType application/json .json
AddType text/x-component .htc
AddType audio/mp4 .m4a .mp4
Timeout 600
<Directory />
Require all denied
</Directory>
<Directory /QSYS.LIB/IZMCOMLIB.LIB>
Require all granted
CGIConvMode BINARY
DefaultNetCCSID 1208
</Directory>
<Directory /LANSA_izmpgmlib/webserver/images>
Require all granted
</Directory>
<Directory /LANSA_izmpgmlib/webserver/www/htdocs>
Require all granted
</Directory>
LoadModule vlweb_module /QSYS.LIB/IZMCOMLIB.LIB/MOD_VLWEB.SRVPGM
<Directory /QSYS.LIB/IZMJSMLIB.LIB>
Require all granted
CGIConvMode BINARY
</Directory>
# <Directory /LANSA_izmpgmlib/webserver/ssl>
# Require all granted
# </Directory>
Regards,
Taku Izumi