Mittwoch, 26. Oktober 2016

SSL PFX to PEM and KEY

In case you have a wildcard PFX certificate and you need a PEM and your private KEY:

A *.pfx certificate is a PKCS#12 format and includes both the certificate and the private key.


1. Export the private key
openssl pkcs12 -in ABC.pfx -nocerts -out privatekey.pem -nodes

2. Export the certificate
openssl pkcs12 -in ABC.pfx -nokeys -out cert.pem

3.  Remove the passphrase from the private key
openssl rsa -in privatekey.pem -out server.key 

Sonntag, 23. Oktober 2016

openBSD some hints

Packages

export PKG_PATH=http://openbsd.cs.fau.de/pub/OpenBSD/$(uname -r)/packages/$(uname -p)/

Clamav

pkg_add c-icap-clamav-0.4.3.tgz



Samstag, 15. Oktober 2016

OS X :create bootable USB device using ISO file

In case you need a  bootable USB stick an you just have an ISO file ...

1.) search for the name of your USB device ( e.g. /dev/disk4) 


diskutil list


2.) convert your iso image to a dmg file
 
hdiutil convert -format UDRW -o yourimage yourimage.iso 

3.)  unmount your USB stick
 
diskutil unmountDisk /dev/disk4 

4) write your DMG to the stick

sudo dd if=yourimage.dmg of=/dev/disk4 bs=10m 

5) unmount your USB stick 

diskutil unmountDisk /dev/disk4