Posts mit dem Label OpenBSD werden angezeigt. Alle Posts anzeigen
Posts mit dem Label OpenBSD werden angezeigt. Alle Posts anzeigen

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 

Montag, 25. April 2016

NMAP on OpenBSD

First you have to add the correct Path environment

export PKG_PATH=http://mirror.esc7.net/pub/OpenBSD/`uname -r`/packages/`machine -a`/

Then you can add the package:

pkg_add -v nmap

Donnerstag, 27. Februar 2014

ssh Tunnel(n)

ssh -L 127.0.0.1:AAAA:SERVER:BBBB GATEWAY

oder


ssh -L AAAA:SERVER:BBBB GATEWAY

AAAA=Lokaler Port
SERVER=IP Remote Server
BBBB=Remote Port
GATEWAY=IP Gateway


Tunnel in Tunnel

ssh -p "SSH Port at Machine A" -l "your username at Machine A" -L 127.0.0.1:22222:127.0.0.1:444 "IPD/DNS of Machine A"