summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2011-12-01 12:16:18 +0100
committerLeif Johansson <leifj@sunet.se>2011-12-01 12:16:18 +0100
commit690c114b5299bea7c6e047ee1f605750353aed09 (patch)
tree5de88ea9607b9ad841839574bdb88fd55e184710 /Makefile
parenteb58972e5c764b1b3f6c21319909f8220bbeccc5 (diff)
signature xsl
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index ec84845c..c5eec1e5 100644
--- a/Makefile
+++ b/Makefile
@@ -23,13 +23,11 @@ MXML=$(shell echo *.mxml)
sign: keys swamid nya nya-testing swamid-testing swamid-testing-idp upstream projects swamid-ki-sll
%.sig: %.mxml
- xsltproc $(XSLTDEFS) --xinclude $(TRANSFORM) $< > $*.tbs
- #xsltproc $(XSLTDEFS) --xinclude xslt/swamid-sign.xsl $< > $*.tbs
- samlsign -s -c $(CERT) -k $(KEY) -f $*.tbs > $@
- #xmlsec1 --sign --privkey-pem $(KEY),$(CERT) --pwd $(PASS) --output $@ $*.tbs
+ xsltproc $(XSLTDEFS) --xinclude $(TRANSFORM) $< > $*.n
+ xsltproc $(XSLTDEFS) --xinclude xslt/sign.xsl $*.n > $*.tbs
+ xmlsec1 --sign --privkey-pem $(KEY),$(CERT) --pwd $(PASS) --output $@ $*.tbs
xmllint --xinclude --nowarning --noout --path schema --schema schema.xsd $@
- samlsign -c $(CERT) -f $@
- rm -f $*.tbs
+ rm -f $*.tbs $*.n
%.pub: %.sig
samlsign -c $(CERT) -f $< && xmllint --c14 $< > $(DEST)/$*.xml