/CobaltKeystore

Converts an SSL CA bundle into a Java KeyStore, suitable for Cobalt Strike.

Primary LanguageShellMIT LicenseMIT

Cobalt KeyStore

Following the official documentation on implementing custom SSL certs in Cobalt Strike, this script loosely follows along and really just saves some time and manual typing.

This assumes you've already submitted a Certificate Signing Request (CSR) and gone through the necessary steps to get a valid SSL cert from a trusted third-party.

If you haven't done so, check out the linked guides from Namecheap. It's probably similar with other hosting providers.

Just a quick refresher:

openssl req -new -newkey rsa:2048 -nodes -keyout example.key -out example.csr

You now have a CSR and accompanying private key.

.csr and .key screenshot

Submit the CSR for validation via your hosting provider.

You'll then receive a .ca-bundle file combining the root and intermediate certificates and a .crt file which is the signed certificate.

SSL bundle email

All needed SSL files

Usage

./cobaltkeystore.sh /path/to/domain.crt /path/to/domain.ca-bundle /path/to/domain.key *.domain.com /path/to/save/domain.store

Usage screenshot

Additional Resources