Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion example/actions/revoke-certificate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ vault write ${PKI_NAME}/revoke \

CRL_DIR="$AIA_FOLDER/$PKI_NAME/issuer/$ISSUER_ID/crl"
mkdir -p $CRL_DIR
vault read -format=raw $PKI_NAME/issuer/$ISSUER_ID/crl/der > $CRL_DIR/der
# We use `/crl/pem` instead of `/crl/der`, as the latter seems to show inconsistent behavior in its output, see https://github.com/hashicorp/vault/issues/32018
vault read -format=raw $PKI_NAME/issuer/$ISSUER_ID/crl/pem > $CRL_DIR/pem
openssl crl -outform der -in $CRL_DIR/pem -out $CRL_DIR/der
rm $CRL_DIR/pem
5 changes: 4 additions & 1 deletion src/scripts/orca-protocol/sudoer/export_crls.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ in
CRL_DIR="$PKI_AIA_DIR/crl"
mkdir -p $CRL_DIR
vault read -format=raw ''${PKI_NAME}/issuer/$ISSUER_ID/der > $PKI_AIA_DIR/der
vault read -format=raw ''${PKI_NAME}/issuer/$ISSUER_ID/crl/der > $CRL_DIR/der
# We use `/crl/pem` instead of `/crl/der`, as the latter seems to show inconsistent behavior in its output, see https://github.com/hashicorp/vault/issues/32018
vault read -format=raw ''${PKI_NAME}/issuer/$ISSUER_ID/crl/pem > $CRL_DIR/pem
openssl crl -outform der -in $CRL_DIR/pem -out $CRL_DIR/der
rm $CRL_DIR/pem
fi
done
done
Expand Down