enricorossi.org

Enrico Rossi


View p7m file with openssl

Tags: encrypt, howto, openssl, p7m, sign, smime

How to view the content of a .p7m file

Normally a .p7m file is what in openssl terms is a DER file 1 (note: it work also with cms command).

openssl smime -verify -in smime.p7m -inform der -noverify -signer cert.pem -out textdata

where:

  • -verify to tell openssl that …
Read more...

Rsyslog with remote log and rotation by date

Tags: debian, howto, linux, log, rsyslog

How to configure a debian (Wheezy) rsyslog daemon to receive logs from remote system, store them in a separate directory/file and the daily rotate these files with date-like extension.

What we want:

/var/log/
 ├── alternatives.log
 ├── alternatives.log.1
 .
 .
 .
 ├── remote
    ├── remote1_host_IP
       ├── remote1_host.log
       ├── remote1_host.log-20141202.gz
       ├── remote1_host.log …
Read more...

Urllib3 json cookie

Tags: cookies, howto, json, python

Login with a Json authentication into an https server with TLSv1 only SSL connection capabilities.

Python has 3 different urllib library in order to manipulate http connections, which unfortunately are not the evolution of the same project. Plus there are others libraries based on these as well.

The urllib2 has …

Read more...
← Previous Page 5 / 16 Next →