Zitrox GmbH Blog

Zitrox GmbH Technology Blog

Archives for Linux

How to export private key from .pfx

# Export the private key file from the pfx file
openssl pkcs12 -in filename.pfx -nocerts -out key.pem
# Export the certificate file from the pfx file
openssl pkcs12 -in filename.pfx -clcerts -nokeys -out cert.pem

# Convert .pem to .key

openssl rsa -in filename.pem -out filename.key

Suhosin does not write logs

We had some troubles, that our Apache2 Servers, secured by suhosin and mod_security, did not write any entries to a logfile.

I changed following entry in php.ini

suhosin.log.syslog.facility = 8

Now all Suhosin related messages are written to /var/log/messages