Skip to content

Instantly share code, notes, and snippets.

View ben-eddy74's full-sized avatar

Eddy ben-eddy74

  • The Netherlands
View GitHub Profile
@ben-eddy74
ben-eddy74 / github.md
Last active May 22, 2023 10:55
GitHub cheatsheet

GitHub cheatsheet

Set local git identity

git config --global user.email "evermoen@gmail.com"
git config --global user.name "Eddy Vermoen"

Push existing local project to new GitHub project

  1. On GitHub, create a new repository
@ben-eddy74
ben-eddy74 / keytool.md
Last active May 25, 2023 18:48
Keytool cheatsheet

Keytool cheatsheet

  • storepass -> used for access to the key store for adding/viewing trust relationships
  • keypass - > used for creating and signing keys/certs

Generate keystore

To create a new keystore with a new private key and a self-signed certificate:

keytool -genkey -keyalg RSA -alias webserver -keystore keystore.jks -storepass changeit -keypass changeit -validity 365 -keysize 2048