|
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf OfCertificate
Bradley Stone
Sent: Friday, January 26, 2018 8:58 AM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] Multiple http servers for zendphp7
SNI = Server Name Identification:
https://www.fieldexit.com/forum/display?threadid=439
SAN = Subject alternative name:
https://www.digicert.com/subject-alternative-name.htm
Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #19 <https://www.bvstools.com/mailtool.html>: The
ability to turn off "Strict SSL" settings. This means no importing
Authorities (CAs) unless you want to.server
On Fri, Jan 26, 2018 at 8:52 AM, Nathan Andelin <nandelin@xxxxxxxxx>
wrote:
Kevin could you provide references to what you mean by the acronyms
SAN and SNI?
Nathan Andelin
On Jan 26, 2018, at 7:02 AM, Kevin Bucknumwrote:
<Kevin@xxxxxxxxxxxxxxxxxxx>
San is a function of the certificate, not the server, so any
wasn'tthat can present a certificate should support it. All modern
browsers should support san certificates, so if your websites are
all running one code base and it is the only codebase you need on
your server, san should work. We only tried to use it once, and it
served off the IBM i.require
We ended up having to scrape the certificate however because the
vendor connecting to us required the domain to match the common
name. That was a while back, and I'm not sure if they still
SSLthat, but we just renew the certificates when they expire now, and
haven't tried to combine them again.
Virtual hosts have been around for a long time. They allow one
server listening on one ip:port combination to have different
configurations based on the domain being served. For a long time
certificate.sites were limited because of the timing of serving the
certificates)You were limited to one certificate per server. SNI allows you to
overcome that. It moved just enough of the headers outside the
encrypted portion of the communication to allow a server to
determine what site the client is trying to reach, and allows the
server to have different configurations (including different
for each domain being served.deadline,
With SAN you have one server serving one certificate for multiple
domains. You are limited to one configuration including codebase,
certificate, permissions, etc.
With named virtual hosts and SNI, you have one server serving
multiple configurations. You can use the same or different
codebases, certificates, permissions, etc.
Both have strengths and weaknesses. Once you get past your
aroundfire up a linux VM and create some letsencrypt certs and play
thatDonwith both just so you understand the config and routing.
Kevin Bucknum
Senior Programmer Analyst
MEDDATA/MEDTRON
Tel: 985-893-2550
-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of
Brown
Sent: Thursday, January 25, 2018 5:07 PM
To: Web Enabling the IBM i(AS/400 and iSeries)
Subject: Re: [WEB400] Multiple http servers for zendphp7
Ok this is well above my skill level!
I had to look SNI up to find it is Server Name Identification
I have a single PHP application running on IBMi at 7.2 and 7.3
withisused by
multiple entities and each entity requires a https connection
yet.appropriate ssl certificate.on this is
I have a deadline of 1st Feb to get this operational.
There is such a certificate as a SAN but getting specific
information
seeming difficult. I tried calling the US and UK offices ofand after
GeoTrust
10 minutes + on hold to each I left a message and no replies as
Isupported on
And I can not find anything that specifically indicates this is
IBMi.certificate and just
While not totally great I can do this with a simple wildcard
put the entities accessing the site; for examplefredsaccounts.msd.net.au
and acmeaccounts.msd.net.au ... Etcetera.this in
Kevin: Thanks for the apache config - I will at some stage go
through
detail and try and understand exactly what you are saying - like
future.said this is
way above my current skill level. Sorry but I really do notunderstand what
this is doing, it may be the perfect solution for my but I can'tvisualise the
network diagram or traffic flow.until you
Pete: I have read a lot about reverse proxies in this blog but
again
actually work with one it is my old head that is struggling withconcept. I
the
know nothing of letsEncrypt Ok scratch that they are a freeCertificate
provider WOW I will have to investigate this further in the
notSo I am
struggling with the overview of how a reverse proxy will allow mehave
to
multiple certificates as indicated above in what I am trying toachieve. As
much as I would love to be going to Sam Antonio this year just
aroundinthe
budget (I did Orlando last year) but if you want a guinea pig toyour
test
presentation on I can definitely assist :-)servers
So I am a little bit stuck.
Appreciate the assistance
Don Brown
From: "Kevin Bucknum" <Kevin@xxxxxxxxxxxxxxxxxxx>
To: "Web Enabling the IBM i\(AS/400 and iSeries\)"
<web400@xxxxxxxxxxxx>
Date: 25/01/2018 11:37 PM
Subject: Re: [WEB400] Multiple http servers for zendphp7
Sent by: "WEB400" <web400-bounces@xxxxxxxxxxxx>
SNI works fine with zendserver on the i. I've been configuring
apache
for so long, that I just do it now, and haven't had to look
namedforany kind
of instructions lately. Any basic walkthrough for setting up
itvirtual
hosts should work. To answer your other question about multipleyears ago,
certificates. I'm 90% sure that I had it working, but that was
several
and the memory is fuzzy. I could try again real quick to see if
areworks. There
are a couple of directives in the IBM apache implantation that
used.different
from standard, and one of them controls the certificate used.SSLAppName
points to a name in the DCM which controls which certificate is
upAs I
recall the only confusing thing was getting the application set
withinthe DCM.
If you have issues setting it up, I can create a letsencrypt certtry and pop
and
a new named instance on my box. It would probably be tomorrow
before I can do that however. Here is my current apache config
onseveralnamed
hosts running different code bases.
#s Configuration originally created by Create HTTP Server wizard
-/QSYS.LIB/QHTTPSVR.LIB/QZSRVSSL.SRVPGMTue Apr
11 01:53:18 CDT 2006 LoadModule proxy_module
/QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_http_module
/QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_connect_module
/QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule proxy_ftp_module
/QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
LoadModule zend_enabler_module
/QSYS.LIB/QHTTPSVR.LIB/QZFAST.SRVPGM
LoadModule ibm_ssl_module
/usr/local/zendsvr6/etc/sites.d/zend-default-vhost-10080.conf
Listen *:10081
NameVirtualHost *:10081
Listen *:10080
NameVirtualHost *:10080
DocumentRoot /www/zendsvr6/htdocs
DefaultFsCCSID 37
CGIJobCCSID 37
<VirtualHost *:10080>
Include
</VirtualHost>
Listen *:443
Options -ExecCGI -FollowSymLinks -SymLinksIfOwnerMatch -Includes
"%{User-agent}i"IncludesNoExec -Indexes -MultiViews LogFormat "%h %l %u %t \"%r\"
%>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%{Cookie}n \"%r\" %t" cookie LogFormat
%tagent LogFormat "%{Referer}i -> %U" referer LogFormat "%h %l %u
4\.0"\"%r\" %>s %b" common CustomLog logs/access_log combined SetEnvIf"User-Agent"
"User-Agent" "Mozilla/2" nokeepalive SetEnvIf "User-Agent"
"JDK/1\.0" force-response-1.0 SetEnvIf
"Java/1\.0" force-response-1.0 SetEnvIf "User-Agent" "RealPlayer
nokeepaliveforce-response-1.0 SetEnvIf "User-Agent" "MSIE 4\.0b2;"
php%%MIXED/MIXED%%SetEnvIf "User-Agent" "MSIE 4\.0b2;" force-response-1.037
DefaultFsCCSID
CGIJobCCSID 37
DirectoryIndex index.php index.html CgiConvMode
TimeOut 30000 KeepAlive Off HotBackup Off NameVirtualHost *:443
#AddCharset UTF-8 .utf8
#AddCharset utf-8 .utf8
#AddCharset utf-7 .utf7
AddCharset UTF-8 .htm .html .xml
# zend fastcgi
AddType application/x-httpd-php .php AddHandler fastcgi-script
#Endallow
RewriteEngine on
<Directory />
Order Deny,Allow
Deny From all
</Directory>
# Allow requests for files in document root
<Directory /www/zendsvr6/htdocs>
Options FollowSymLinks
order allow,deny
allow from all
AllowOverride all
</Directory>
<Directory /usr/local/zendsvr6/var/apps>
Options FollowSymLinks
order allow,deny
allow from all
AllowOverride all
</Directory>
<Directory /www/medpmdemo>
Options FollowSymLinks
order allow,deny
allow from all
AllowOverride all
</Directory>
<Directory /www/programming>
Options FollowSymLinks
order allow,deny
allow from all
AllowOverride all
</Directory>
<Directory /www/kevin_dev>
Options FollowSymLinks
order allow,deny
allow from all
AllowOverride all
</Directory>
<Directory /www/waynehdev>
Options FollowSymLinks
order allow,deny
allow from all
AllowOverride all
</Directory>
<Directory /www/jeremyldev>
Options FollowSymLinks
order allow,deny
allow from all
AllowOverride all
</Directory>
<Directory /www/mounika_dev>
Options FollowSymLinks
order allow,deny
allow from all
AllowOverride all
</Directory>
<Directory /www/medpmweb>
Options FollowSymLinks
order allow,deny
allow from all
AllowOverride all
</Directory>
<VirtualHost *:10081>
RedirectMatch ^/$ /ZendServer/
DocumentRoot /usr/local/zendsvr6/gui/public/ <Directory
/usr/local/zendsvr6/gui>
Options FollowSymLinks
AllowOverride None
order allow,deny
Allow from all
</Directory>
<Location /ZendServer>
order allow,deny
Allow from all
</Location>
Alias /ZendServer "/usr/local/zendsvr6/gui/public"
<Directory "/usr/local/zendsvr6/gui/public">
AllowOverride All
order allow,deny
Allow from all
</Directory>
</VirtualHost>
<Location /Zend5250Demos>
Order deny,allow
Allow from all
</Location>
<Location /Zend5250Login>
Order deny,allow
Allow from all
</Location>
Alias /Zend5250Demos /usr/local/zendsvr6/5250/demos Alias
/Zend5250Login /usr/local/zendsvr6/5250/Generator/Form
Alias /Zend5250Appl /usr/local/zendsvr6/5250/Welcome
<Directory "/www/zendsvr6/htdocs/Zend5250Emulator">
Options FollowSymLinks
AllowOverride All
</Directory>
IncludeOptional /usr/local/zendsvr6/etc/sites.d/globals-*.conf
IncludeOptional /usr/local/zendsvr6/etc/sites.d/vhost_*.conf
Listen 127.0.0.1:10083
NameVirtualHost 127.0.0.1:10083
<VirtualHost 127.0.0.1:10083>
Alias /UserServer /usr/local/zendsvr6/share/UserServer
DocumentRoot /usr/local/zendsvr6/share/UserServer
<Directory /usr/local/zendsvr6/share/UserServer>
AllowOverride All
Allow from all
</Directory>
</VirtualHost>
#XML Toolkit http settings
ScriptAlias /cgi-bin/ /QSYS.LIB/ZENDSVR6.LIB/ <Directory
/QSYS.LIB/ZENDSVR6.LIB/> AllowOverride None order allow,deny
from all SetHandler cgi-script Options +ExecCGI </Directory>
daysXML
Toolkit http settings
#/* keep access logs 30 days, error logs 30 days, FastCGI logs 30
for an#/LogMaint logs/access_log 30 0 #/LogMaint logs/error_log 30 0#//LogMaint
logs/error_zfcgi 30 0
#/ Maintain Logs at 3 am (0 = midnight, 23 = 11 pm, etc) #/ Set
toDonhour
when the server is active (i.e. not during an IPL or backup, forexample)
<Location /phpmyadmin>
Order deny,allow
Allow from all
</Location>
<VirtualHost *:443>
ServerName dev.medtronsoftware.com
DocumentRoot /www/medpmweb/public
SSLEngine On
SSLAppName QIBM_HTTP_SERVER_ZENDSVR
SSLCacheEnable
SetEnv HTTPS_PORT 443
</VirtualHost>
<VirtualHost *:443>
ServerName kevin.dev.medtronsoftware.com
DocumentRoot /www/kevin_dev/public
SSLEngine On
SSLAppName QIBM_HTTP_SERVER_ZENDSVR
SSLCacheEnable
SetEnv HTTPS_PORT 443
</VirtualHost>
<VirtualHost *:443>
ServerName mounika.dev.medtronsoftware.com
DocumentRoot /www/mounika_dev/public
SSLEngine On
SSLAppName QIBM_HTTP_SERVER_ZENDSVR
SSLCacheEnable
SetEnv HTTPS_PORT 443
</VirtualHost>
<VirtualHost *:443>
ServerName wayneh.dev.medtronsoftware.com
DocumentRoot /www/waynehdev/medpmweb/public
SSLEngine On
SSLAppName QIBM_HTTP_SERVER_ZENDSVR
SSLCacheEnable
SetEnv HTTPS_PORT 443
</VirtualHost>
<VirtualHost *:443>
ServerName jeremyldev.medtronsoftware.com
DocumentRoot /www/jeremyldev/medpmweb/public
SSLEngine On
SSLAppName QIBM_HTTP_SERVER_ZENDSVR
SSLCacheEnable
SetEnv HTTPS_PORT 443
</VirtualHost>
<VirtualHost *:443>
ServerName programming.medtronsoftware.com
DocumentRoot /www/programming/public
SSLEngine On
SSLAppName QIBM_HTTP_SERVER_ZENDSVR
SSLCacheEnable
SetEnv HTTPS_PORT 443
</VirtualHost>
<VirtualHost *:443>
ServerName medpmdemo.medtronsoftware.com
DocumentRoot /www/medpmdemo/public
SSLEngine On
SSLAppName QIBM_HTTP_SERVER_ZENDSVR
SSLCacheEnable
SetEnv HTTPS_PORT 443
</VirtualHost>
Kevin Bucknum
Senior Programmer Analyst
MEDDATA/MEDTRON
Tel: 985-893-2550
-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of
Brown
Sent: Thursday, January 25, 2018 3:20 AM
To: Web400@Midrange. Web400
Subject: [WEB400] Multiple http servers for zendphp7
I am trying to find a cheat sheet or step by step instructions
onhave
multiple
http servers all running php.
Reason being I have 4 different domain names and to enable ssl
botheach
I
need 4 http servers on 4 different ip addresses.
I am also exploring SAN ssl certificates but want to explore
thereoptions first.
Does anyone have multiple http servers providing php and are
mailing__________________________________________________________any
mailing listconcerns / problems that I should be aware of ?mailing list
Thanks for any assistance
IBMi V7R2 and V7R3
Don Brown
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
To post a message email: WEB400@xxxxxxxxxxxx To subscribe,unsubscribe,
or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/web400.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
To post a message email: WEB400@xxxxxxxxxxxx To subscribe,unsubscribe,
or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/web400.
______________________________________________________________________service.
This email has been scanned by the Symantec Email Security.cloud
For more information please visit http://www.symanteccloud.com
____________mailing list
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
To post a message email: WEB400@xxxxxxxxxxxx To subscribe,unsubscribe,
or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/web400.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
mailinglist
To post a message email: WEB400@xxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
mailing listlist--
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.