diff options
author | Rob Austein <sra@hactrn.net> | 2007-12-22 15:37:02 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2007-12-22 15:37:02 +0000 |
commit | 0f3f2115a5de3900d28a5e7db021301d8ea568d0 (patch) | |
tree | 78c879ef700ad57a59bbd40873a4fdf8d2969d85 /scripts/extract-cert-from-rpki.sh | |
parent | 21e8c4bc5c12be2e73f9eff5a9045ddbe5c52912 (diff) |
Checkpoint
svn path=/scripts/extract-cert-from-rpki.sh; revision=1419
Diffstat (limited to 'scripts/extract-cert-from-rpki.sh')
-rw-r--r-- | scripts/extract-cert-from-rpki.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/extract-cert-from-rpki.sh b/scripts/extract-cert-from-rpki.sh new file mode 100644 index 00000000..77aac303 --- /dev/null +++ b/scripts/extract-cert-from-rpki.sh @@ -0,0 +1,21 @@ +#!/bin/sh - +# $Id$ + +: ${instance=R0} + +python ../rpkid.py -c $instance.conf & +rpkid=$! + +python ../irbe-cli.py -c $instance.conf bsc --self_id 1 --action list | +qh 2>/dev/null | +awk ' + /\(signing_cert/ {p = 1} + /\)signing_cert/ {p = 0} + p && /^-/ { + sub(/-/,""); + cmd = "mimencode -u | openssl x509 -text -inform DER -out " NR ".pem"; + print | cmd; + } +' + +kill $rpkid |