# XXX: keytool fails with 'java.util.MissingFormatArgumentException:
# Format specifier '%2$s'' when using the fr_CA.utf-8 locale.
LANG := C

export LANG

cache:
        mkdir $@

setup: cache
        guix shell openssl -- openssl genrsa -out ca.key 2048 && \
        guix shell openssl -- \
        openssl req -x509 -new -nodes -key ca.key -sha256 -days 1 -out ca.cer \
        -subj "/C=AL/ST=a/L=a/O=a/OU=a/CN=example.org" && \
        guix shell openjdk:jdk -- sh -c \
        'yes | keytool -importcert -file ca.cer -store-pass 123456 \
        -keystore cache/keystore'

clean:
        rm -rf cache ca.cer ca.key

Generated by apteryx using scpaste at Fri Dec 5 12:43:50 2025. JST. (original)