-bash-3.2# echo | openssl s_client -connect starcat:443 2>/dev/null | openssl x509 -noout -issuer -subject -dates issuer= /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 High Assurance Server CA subject= /C=US/ST=California/L=Santa Clara/O=ABC Company, Inc./CN=*.abc.com notBefore=Dec 9 00:00:00 2013 GMT notAfter=Feb 23 12:00:00 2017 GMT -bash-3.2# echo | openssl s_client -connect unix:443 2>/dev/null | openssl x509 -noout -issuer -subject -dates issuer= /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 High Assurance Server CA subject= /C=US/ST=California/L=Santa Clara/O=ABC Company, Inc./CN=*.abc.com notBefore=Dec 9 00:00:00 2013 GMT notAfter=Feb 23 12:00:00 2017 GMT
Showing posts with label http. Show all posts
Showing posts with label http. Show all posts
Monday, April 20, 2015
How to check SSL Certificate information from a Linux server?
Labels:
apache,
certificate,
How-to series,
http,
HTTPS,
Linux fundamentals,
openssl,
Security,
SSL
Sunday, May 1, 2011
How to make an apache home directory browsable?
I was looking for my apache's home directory to be browsable but somehow it was not showing
directory listing. Well, apache has an option call "Options" which should be set to "Options -Indexes" sometimes which prevents directory browing if there is "no index.html" file in that directory.
IN my case, I was experimenting it on a centos system and found that in following location, it needed to be modified:
So, the moment I changed the "-Indexes" to "Indexes" and restarted httpd, voila!!! it started working as expected.... i.e. I just enabled directory browsing!!! :)
directory listing. Well, apache has an option call "Options" which should be set to "Options -Indexes" sometimes which prevents directory browing if there is "no index.html" file in that directory.
IN my case, I was experimenting it on a centos system and found that in following location, it needed to be modified:
# cat /etc/httpd/conf.d/welcome.conf
#
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL. To disable the Welcome page, comment
# out all the lines below.
#
< LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /error/noindex.html
< /LocationMatch>
So, the moment I changed the "-Indexes" to "Indexes" and restarted httpd, voila!!! it started working as expected.... i.e. I just enabled directory browsing!!! :)
# cat /etc/httpd/conf.d/welcome.conf
#
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL. To disable the Welcome page, comment
# out all the lines below.
#
< LocationMatch "^/+$">
Options Indexes
ErrorDocument 403 /error/noindex.html
< /LocationMatch>
Labels:
apache,
CentOS,
How-to series,
http,
httpd,
Linux fundamentals,
Solaris
Subscribe to:
Posts (Atom)