How to assign a Privileged Port to OHS

Problem :
Unable to assign port 80 & 443 to http & https respectively in OHS, which is running on Linux environment. Below error logged in OHS logs

[VirtualHost: main] (13)Permission denied: make_sock: could not bind to address [::]:443

Cause:
On a UNIX system the TCP/IP port numbers below 1024 are special in that only processes with root privileges are allowed to listen on those ports. Continue reading

Advertisements

Create .p12 from .pfx using OpenSSL

With following steps we can extract certificate from .pfx file

1. Extract private key

openssl pkcs12 -in C:\certificate.pfx -nocerts -out C:\certificate\privatekey.key
        Enter Import Password:
        MAC verified OK
        Enter PEM pass phrase:
        Verifying - Enter PEM pass phrase:

Continue reading