-
Create a Root key:
openssl genrsa -des3 -out rootCA.key 2048
-
Create a root certificate in PEM format, using the root key:
Generate public/private key using FIPS 186-4, and FIPS 180-4. Using: | |
- Accepted hash function (i.e. SHA512) | |
- RSA with 2048 bits | |
- Strong private key password. | |
- Valid Certificate issued by a valid CA. | |
env OPENSSL_FIPS=1 openssl genrsa -aes128 -passout pass:<password> -out private.pem 2048 | |
env OPENSSL_FIPS=1 openssl rsa -in private.pem -passin pass:<password> -pubout -out public.pem | |
> Generated Files: private.pem, public.pem |
- Download and install GPG from www.gnupg.org. On Mac, you can install gnupg through Homebrew.
brew install gnupg
- Generate a new GPG Key. You can select the defaults for this command, but it is required that you enter your full name and your email address when needed. The email address must be the same as your verified email address in your GitHub account if you need to push signed commits to this website. Also define a secure password (keep note of it, you will need it later):
There are multiple posts (old and new) with instructions on how to generate a fat jar, this is, a jar file for your application
containing also your application's dependencies. Most solutions I have tried did not work for me, even in a simple Hello World
java application, but I have found one that seems to work as expected.
Here it is:
To sign one or more jar files using the jarsigner
tool (part of any JDK), follow these instructions. Notice this set of
instructions assume you already have the needed KeyStore with the corresponding Code Signing certificate, the KeyStore and
certificate key password, and you know the alias of the Key to use from the KeyStore.
- Make sure to have a KeysStore with your Code Signing certificate, associated passwords, etc.
- Add the following properties to your Gradle project. Remember you probably don't want your private credentials in your versioning system:
# Flush DNS | |
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder; | |
# Simple website connection test/benchmarks | |
curl --verbose -H "Connection: close" -w '\nLookup time:\t%{time_namelookup}\nConnect time:\t%{time_connect}\nAppCon time:\t%{time_appconnect}\nRedirect time:\t%{time_redirect}\nPreXfer time:\t%{time_pretransfer}\nStartXfer time:\t%{time_starttransfer}\n\nTotal time:\t%{time_total}\n' -o /dev/null -s https://google.com | |
Source: https://tecadmin.net/how-to-configure-static-ip-address-on-ubuntu-22-04/
- Find the Newtwork Interface name
sudo ip a
Capture the network interface name. It is NOT the lo
but something like eth0
or ens160
.
- Create or Edit a Netplan configuration file