Skip to content

Instantly share code, notes, and snippets.

@greenantdotcom
greenantdotcom / gist:2208971
Created March 26, 2012 19:30
How to inspect SSL certificate related info
### View a key's information
openssl rsa -in key -noout -text
### View a CSR's information
openssl req -in csr -noout -text
### View a certificate's information
@greenantdotcom
greenantdotcom / gist:2208964
Created March 26, 2012 19:29
How to detect which processes are running on a disk you are trying to eject
[root@scratch1 exthd]# fuser -mv /media/exthd/
USER PID ACCESS COMMAND
/media/exthd/: root 29787 ..c.. bash
root 29846 ..c.. bash
root 29898 ..c.. man
root 29901 ..c.. sh