Java, Public Key Infrastructure ( PKI ), Tech

Add Certificate to JAVA keystore (cacerts)


  • Have keytool installed (Installed as a part of the jre)
  • Have your certificate local (either pem or der format)
  • Know where your keystore is
/usr/java/jre1.7.0/bin/keytool -importcert -trustcacerts -noprompt \
-alias custom-root-ca \
-storepass changeit \
-file /etc/ssl/certs/CERT.pem \
-keystore /usr/java/jre1.7.0/lib/security/cacerts


Personal, Tech

Geek vs Dork vs Nerd vs Dweeb

This is one of those cases where a picture is worth a thousand words.

What is the difference between a Nerd, Geek, Dork, or Dweeb?

‘nuf said.


scp: ambiguous target

I was attempting to secure copy a file over a remote server and I encountered the following error:
$ scp file.txt user@ip_address:”/file path/”
scp: ambiguous target

So after some trial and error I discovered the problem was the space ” ” in the path to which I was attempting to copy the file to. I knew you would have to escape the space with a ” ” however I would still get the error.

To solve this problem you need to escape the space AND add the quote around the path
$ scp /file/to/copy user@desthost:”/file path/”