|
|
4be148 |
From 142255ba9af4ce1016a8eadf147e599ee490f1f7 Mon Sep 17 00:00:00 2001
|
|
|
4be148 |
From: Nalin Dahyabhai <nalin@dahyabhai.net>
|
|
|
4be148 |
Date: Fri, 7 Feb 2014 18:03:29 -0500
|
|
|
4be148 |
Subject: [PATCH 12/13] Add a simple KDC proxy test server
|
|
|
4be148 |
|
|
|
4be148 |
This proxy server uses python-paste to run the kdcproxy from
|
|
|
4be148 |
https://pypi.python.org/pypi/kdcproxy. It should be used along
|
|
|
4be148 |
with the proxy.pem certificate in ../tests/dejagnu/proxy-certs.
|
|
|
4be148 |
|
|
|
4be148 |
ticket: 7929
|
|
|
4be148 |
---
|
|
|
4be148 |
src/tests/dejagnu/proxy-certs/ca.pem | 28 +++++
|
|
|
4be148 |
src/tests/dejagnu/proxy-certs/make-certs.sh | 124 +++++++++++++++++++++++
|
|
|
4be148 |
src/tests/dejagnu/proxy-certs/proxy-badsig.pem | 56 ++++++++++
|
|
|
4be148 |
src/tests/dejagnu/proxy-certs/proxy-ideal.pem | 56 ++++++++++
|
|
|
4be148 |
src/tests/dejagnu/proxy-certs/proxy-no-match.pem | 54 ++++++++++
|
|
|
4be148 |
src/tests/dejagnu/proxy-certs/proxy-san.pem | 56 ++++++++++
|
|
|
4be148 |
src/tests/dejagnu/proxy-certs/proxy-subject.pem | 54 ++++++++++
|
|
|
4be148 |
src/util/paste-kdcproxy.py | 18 ++++
|
|
|
4be148 |
8 files changed, 446 insertions(+)
|
|
|
4be148 |
create mode 100644 src/tests/dejagnu/proxy-certs/ca.pem
|
|
|
4be148 |
create mode 100755 src/tests/dejagnu/proxy-certs/make-certs.sh
|
|
|
4be148 |
create mode 100644 src/tests/dejagnu/proxy-certs/proxy-badsig.pem
|
|
|
4be148 |
create mode 100644 src/tests/dejagnu/proxy-certs/proxy-ideal.pem
|
|
|
4be148 |
create mode 100644 src/tests/dejagnu/proxy-certs/proxy-no-match.pem
|
|
|
4be148 |
create mode 100644 src/tests/dejagnu/proxy-certs/proxy-san.pem
|
|
|
4be148 |
create mode 100644 src/tests/dejagnu/proxy-certs/proxy-subject.pem
|
|
|
4be148 |
create mode 100755 src/util/paste-kdcproxy.py
|
|
|
4be148 |
|
|
|
4be148 |
diff --git a/src/tests/dejagnu/proxy-certs/ca.pem b/src/tests/dejagnu/proxy-certs/ca.pem
|
|
|
4be148 |
new file mode 100644
|
|
|
4be148 |
index 0000000..e0f8dc7
|
|
|
4be148 |
--- /dev/null
|
|
|
4be148 |
+++ b/src/tests/dejagnu/proxy-certs/ca.pem
|
|
|
4be148 |
@@ -0,0 +1,28 @@
|
|
|
4be148 |
+-----BEGIN CERTIFICATE-----
|
|
|
4be148 |
+MIIEuzCCA6OgAwIBAgIBATANBgkqhkiG9w0BAQUFADCBmTELMAkGA1UEBhMCVVMx
|
|
|
4be148 |
+FjAUBgNVBAgTDU1hc3NhY2h1c2V0dHMxEjAQBgNVBAcTCUNhbWJyaWRnZTEMMAoG
|
|
|
4be148 |
+A1UEChMDTUlUMSIwIAYDVQQLExlJbnNlY3VyZSBLZXJiZXJvcyB0ZXN0IENBMSww
|
|
|
4be148 |
+KgYDVQQDFCN0ZXN0IHN1aXRlIENBOyBkbyBub3QgdXNlIG90aGVyd2lzZTAeFw0x
|
|
|
4be148 |
+NDA1MDIxOTA2MDhaFw0yNTA0MTQxOTA2MDhaMIGZMQswCQYDVQQGEwJVUzEWMBQG
|
|
|
4be148 |
+A1UECBMNTWFzc2FjaHVzZXR0czESMBAGA1UEBxMJQ2FtYnJpZGdlMQwwCgYDVQQK
|
|
|
4be148 |
+EwNNSVQxIjAgBgNVBAsTGUluc2VjdXJlIEtlcmJlcm9zIHRlc3QgQ0ExLDAqBgNV
|
|
|
4be148 |
+BAMUI3Rlc3Qgc3VpdGUgQ0E7IGRvIG5vdCB1c2Ugb3RoZXJ3aXNlMIIBIjANBgkq
|
|
|
4be148 |
+hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA1zudnpN8FP7iLn1vgkyT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+MQUOujYJW1WyZ2PidN5M1exDeMgQN9nVjUCx/WKD9fnzOjOOR1Sc8Us2KpoyccIi
|
|
|
4be148 |
+A+ABHubCvSO3cln0Sp7qjkssJScZtouzPu8FYiroTIR+1oSIKTpJiik1EptlsTea
|
|
|
4be148 |
+L6fHTMHspFhZaiUJFHWTBAgn/dT+UkFntHdHGI6HWBThFVW05hKoarBA7N25W7FN
|
|
|
4be148 |
+AHyfC0lKds4qFiBQkpdi
|
|
|
4be148 |
+-----END CERTIFICATE-----
|
|
|
4be148 |
diff --git a/src/tests/dejagnu/proxy-certs/make-certs.sh b/src/tests/dejagnu/proxy-certs/make-certs.sh
|
|
|
4be148 |
new file mode 100755
|
|
|
4be148 |
index 0000000..1191bf0
|
|
|
4be148 |
--- /dev/null
|
|
|
4be148 |
+++ b/src/tests/dejagnu/proxy-certs/make-certs.sh
|
|
|
4be148 |
@@ -0,0 +1,124 @@
|
|
|
4be148 |
+#!/bin/sh -e
|
|
|
4be148 |
+
|
|
|
4be148 |
+PWD=`pwd`
|
|
|
4be148 |
+NAMETYPE=1
|
|
|
4be148 |
+KEYSIZE=2048
|
|
|
4be148 |
+DAYS=4000
|
|
|
4be148 |
+REALM=KRBTEST.COM
|
|
|
4be148 |
+TLS_SERVER_EKU=1.3.6.1.5.5.7.3.1
|
|
|
4be148 |
+PROXY_EKU_LIST=$TLS_SERVER_EKU
|
|
|
4be148 |
+
|
|
|
4be148 |
+cat > openssl.cnf << EOF
|
|
|
4be148 |
+[req]
|
|
|
4be148 |
+prompt = no
|
|
|
4be148 |
+distinguished_name = \$ENV::SUBJECT
|
|
|
4be148 |
+
|
|
|
4be148 |
+[ca]
|
|
|
4be148 |
+default_ca = test_ca
|
|
|
4be148 |
+
|
|
|
4be148 |
+[test_ca]
|
|
|
4be148 |
+new_certs_dir = $PWD
|
|
|
4be148 |
+serial = $PWD/ca.srl
|
|
|
4be148 |
+database = $PWD/ca.db
|
|
|
4be148 |
+certificate = $PWD/ca.pem
|
|
|
4be148 |
+private_key = $PWD/privkey.pem
|
|
|
4be148 |
+default_days = $DAYS
|
|
|
4be148 |
+x509_extensions = exts_proxy
|
|
|
4be148 |
+policy = proxyname
|
|
|
4be148 |
+default_md = sha1
|
|
|
4be148 |
+unique_subject = no
|
|
|
4be148 |
+email_in_dn = no
|
|
|
4be148 |
+
|
|
|
4be148 |
+[signer]
|
|
|
4be148 |
+CN = test CA certificate
|
|
|
4be148 |
+C = US
|
|
|
4be148 |
+ST = Massachusetts
|
|
|
4be148 |
+L = Cambridge
|
|
|
4be148 |
+O = MIT
|
|
|
4be148 |
+OU = Insecure Kerberos test CA
|
|
|
4be148 |
+CN = test suite CA; do not use otherwise
|
|
|
4be148 |
+
|
|
|
4be148 |
+[proxy]
|
|
|
4be148 |
+C = US
|
|
|
4be148 |
+ST = Massachusetts
|
|
|
4be148 |
+O = KRBTEST.COM
|
|
|
4be148 |
+CN = PROXYinSubject
|
|
|
4be148 |
+
|
|
|
4be148 |
+[localhost]
|
|
|
4be148 |
+C = US
|
|
|
4be148 |
+ST = Massachusetts
|
|
|
4be148 |
+O = KRBTEST.COM
|
|
|
4be148 |
+CN = localhost
|
|
|
4be148 |
+
|
|
|
4be148 |
+[proxyname]
|
|
|
4be148 |
+C = supplied
|
|
|
4be148 |
+ST = supplied
|
|
|
4be148 |
+O = supplied
|
|
|
4be148 |
+CN = supplied
|
|
|
4be148 |
+
|
|
|
4be148 |
+[exts_ca]
|
|
|
4be148 |
+subjectKeyIdentifier = hash
|
|
|
4be148 |
+authorityKeyIdentifier = keyid:always,issuer:always
|
|
|
4be148 |
+keyUsage = nonRepudiation,digitalSignature,keyEncipherment,dataEncipherment,keyAgreement,keyCertSign,cRLSign
|
|
|
4be148 |
+basicConstraints = critical,CA:TRUE
|
|
|
4be148 |
+
|
|
|
4be148 |
+[exts_proxy]
|
|
|
4be148 |
+subjectKeyIdentifier = hash
|
|
|
4be148 |
+authorityKeyIdentifier = keyid:always,issuer:always
|
|
|
4be148 |
+keyUsage = nonRepudiation,digitalSignature,keyEncipherment,keyAgreement
|
|
|
4be148 |
+basicConstraints = critical,CA:FALSE
|
|
|
4be148 |
+subjectAltName = DNS:proxyŠubjectÄltÑame,DNS:proxySubjectAltName,IP:127.0.0.1,IP:::1,DNS:localhost
|
|
|
4be148 |
+extendedKeyUsage = $PROXY_EKU_LIST
|
|
|
4be148 |
+
|
|
|
4be148 |
+[exts_proxy_no_san]
|
|
|
4be148 |
+subjectKeyIdentifier = hash
|
|
|
4be148 |
+authorityKeyIdentifier = keyid:always,issuer:always
|
|
|
4be148 |
+keyUsage = nonRepudiation,digitalSignature,keyEncipherment,keyAgreement
|
|
|
4be148 |
+basicConstraints = critical,CA:FALSE
|
|
|
4be148 |
+extendedKeyUsage = $PROXY_EKU_LIST
|
|
|
4be148 |
+EOF
|
|
|
4be148 |
+
|
|
|
4be148 |
+# Generate a private key.
|
|
|
4be148 |
+openssl genrsa $KEYSIZE -nodes > privkey.pem
|
|
|
4be148 |
+
|
|
|
4be148 |
+# Generate a "CA" certificate.
|
|
|
4be148 |
+SUBJECT=signer openssl req -config openssl.cnf -new -x509 -extensions exts_ca \
|
|
|
4be148 |
+ -set_serial 1 -days $DAYS -key privkey.pem -out ca.pem
|
|
|
4be148 |
+
|
|
|
4be148 |
+# Generate proxy certificate signing requests.
|
|
|
4be148 |
+SUBJECT=proxy openssl req -config openssl.cnf -new -key privkey.pem \
|
|
|
4be148 |
+ -out proxy.csr
|
|
|
4be148 |
+SUBJECT=localhost openssl req -config openssl.cnf -new -key privkey.pem \
|
|
|
4be148 |
+ -out localhost.csr
|
|
|
4be148 |
+
|
|
|
4be148 |
+# Issue the certificate with the right name in a subjectAltName.
|
|
|
4be148 |
+echo 02 > ca.srl
|
|
|
4be148 |
+cat /dev/null > ca.db
|
|
|
4be148 |
+SUBJECT=proxy openssl ca -config openssl.cnf -extensions exts_proxy \
|
|
|
4be148 |
+ -batch -days $DAYS -notext -out tmp.pem -in proxy.csr
|
|
|
4be148 |
+cat privkey.pem tmp.pem > proxy-san.pem
|
|
|
4be148 |
+
|
|
|
4be148 |
+# Issue a certificate that only has the name in the subject field
|
|
|
4be148 |
+SUBJECT=proxy openssl ca -config openssl.cnf -extensions exts_proxy_no_san \
|
|
|
4be148 |
+ -batch -days $DAYS -notext -out tmp.pem -in localhost.csr
|
|
|
4be148 |
+cat privkey.pem tmp.pem > proxy-subject.pem
|
|
|
4be148 |
+
|
|
|
4be148 |
+# Issue a certificate that doesn't include any matching name values.
|
|
|
4be148 |
+SUBJECT=proxy openssl ca -config openssl.cnf -extensions exts_proxy_no_san \
|
|
|
4be148 |
+ -batch -days $DAYS -notext -out tmp.pem -in proxy.csr
|
|
|
4be148 |
+cat privkey.pem tmp.pem > proxy-no-match.pem
|
|
|
4be148 |
+
|
|
|
4be148 |
+# Issue a certificate that contains all matching name values.
|
|
|
4be148 |
+SUBJECT=proxy openssl ca -config openssl.cnf -extensions exts_proxy \
|
|
|
4be148 |
+ -batch -days $DAYS -notext -out tmp.pem -in localhost.csr
|
|
|
4be148 |
+cat privkey.pem tmp.pem > proxy-ideal.pem
|
|
|
4be148 |
+
|
|
|
4be148 |
+# Corrupt the signature on the certificate.
|
|
|
4be148 |
+SUBJECT=proxy openssl x509 -outform der -in proxy-ideal.pem -out bad.der
|
|
|
4be148 |
+length=`od -Ad bad.der | tail -n 1 | awk '{print $1}'`
|
|
|
4be148 |
+dd if=/dev/zero bs=1 of=bad.der count=16 seek=`expr $length - 16`
|
|
|
4be148 |
+SUBJECT=proxy openssl x509 -inform der -in bad.der -out tmp.pem
|
|
|
4be148 |
+cat privkey.pem tmp.pem > proxy-badsig.pem
|
|
|
4be148 |
+
|
|
|
4be148 |
+# Clean up.
|
|
|
4be148 |
+rm -f openssl.cnf proxy.csr localhost.csr privkey.pem ca.db ca.db.old ca.srl ca.srl.old ca.db.attr ca.db.attr.old 02.pem 03.pem 04.pem 05.pem tmp.pem bad.der
|
|
|
4be148 |
diff --git a/src/tests/dejagnu/proxy-certs/proxy-badsig.pem b/src/tests/dejagnu/proxy-certs/proxy-badsig.pem
|
|
|
4be148 |
new file mode 100644
|
|
|
4be148 |
index 0000000..2b31f7d
|
|
|
4be148 |
--- /dev/null
|
|
|
4be148 |
+++ b/src/tests/dejagnu/proxy-certs/proxy-badsig.pem
|
|
|
4be148 |
@@ -0,0 +1,56 @@
|
|
|
4be148 |
+-----BEGIN RSA PRIVATE KEY-----
|
|
|
4be148 |
+MIIEpQIBAAKCAQEA1zudnpN8FP7iLn1vgkyTSn/RQxXx1yt6zikHaMrVPjkjXPPU
|
|
|
4be148 |
+oCFpWS3eeI4aQFoj93L5MwZDmSxOflBAqLwV2AMAacrYnNPJIkHtbYKdVsvw9b4I
|
|
|
4be148 |
+NTWqV9/DOODO7UowyMppmO35/pUXaLL+AjHjLw1/EhQ3ZYtqfpAMOkf5TnS5GtqZ
|
|
|
4be148 |
+FlrYgZKE8vTC8BxDKM7FYhWYz7kp/tG3S8O/RTnP7Nd+h1YdpmlHBGfuwIRIJz5x
|
|
|
4be148 |
+Nw6KIcCy3Q0NNoKnh00WVwLmR+x11BGSkMjiZZkwJ5D0RObSg13QD/itrGoV2gtP
|
|
|
4be148 |
+zjQgNPfTrjsMvyOWAAFrWVR3QLTxnnmXsqnXvwIDAQABAoIBAQCqvhpeMDXhGgoo
|
|
|
4be148 |
+Q03wmfrGwPsrMv91aIK1hYrhMPdVs1JAbRYiKh8+pcq07FYa8udRaB4UwkVh/+oM
|
|
|
4be148 |
+/nEs6niRsl/jjQ2l68TFrnNByroynvr6l9Q/EeGecF6Ygo7lY1OsFhcLQM5vjarS
|
|
|
4be148 |
+XhxvdU/6hcRmfS8tGRpUaMWqfmpiN3YgJcgt8SoYhiwAYDTMJjNyWC61lO7IqNVR
|
|
|
4be148 |
+4kntiM24sfAu1sdZynX8Gp2GrpNChapEuhilQ8RayjuStEYr2abcSIjfZFHQXN7o
|
|
|
4be148 |
+TnjL+AQUzc/ZTXDGnIe9ZzZeFz8UCueeoN6KPxf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gsnoraVLrjJshEQ4z/ZAAAAAAAAAAAAAAAAAAAA
|
|
|
4be148 |
+AA==
|
|
|
4be148 |
+-----END CERTIFICATE-----
|
|
|
4be148 |
diff --git a/src/tests/dejagnu/proxy-certs/proxy-ideal.pem b/src/tests/dejagnu/proxy-certs/proxy-ideal.pem
|
|
|
4be148 |
new file mode 100644
|
|
|
4be148 |
index 0000000..4588f7d
|
|
|
4be148 |
--- /dev/null
|
|
|
4be148 |
+++ b/src/tests/dejagnu/proxy-certs/proxy-ideal.pem
|
|
|
4be148 |
@@ -0,0 +1,56 @@
|
|
|
4be148 |
+-----BEGIN RSA PRIVATE KEY-----
|
|
|
4be148 |
+MIIEpQIBAAKCAQEA1zudnpN8FP7iLn1vgkyTSn/RQxXx1yt6zikHaMrVPjkjXPPU
|
|
|
4be148 |
+oCFpWS3eeI4aQFoj93L5MwZDmSxOflBAqLwV2AMAacrYnNPJIkHtbYKdVsvw9b4I
|
|
|
4be148 |
+NTWqV9/DOODO7UowyMppmO35/pUXaLL+AjHjLw1/EhQ3ZYtqfpAMOkf5TnS5GtqZ
|
|
|
4be148 |
+FlrYgZKE8vTC8BxDKM7FYhWYz7kp/tG3S8O/RTnP7Nd+h1YdpmlHBGfuwIRIJz5x
|
|
|
4be148 |
+Nw6KIcCy3Q0NNoKnh00WVwLmR+x11BGSkMjiZZkwJ5D0RObSg13QD/itrGoV2gtP
|
|
|
4be148 |
+zjQgNPfTrjsMvyOWAAFrWVR3QLTxnnmXsqnXvwIDAQABAoIBAQCqvhpeMDXhGgoo
|
|
|
4be148 |
+Q03wmfrGwPsrMv91aIK1hYrhMPdVs1JAbRYiKh8+pcq07FYa8udRaB4UwkVh/+oM
|
|
|
4be148 |
+/nEs6niRsl/jjQ2l68TFrnNByroynvr6l9Q/EeGecF6Ygo7lY1OsFhcLQM5vjarS
|
|
|
4be148 |
+XhxvdU/6hcRmfS8tGRpUaMWqfmpiN3YgJcgt8SoYhiwAYDTMJjNyWC61lO7IqNVR
|
|
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pVsy69u3tj68
|
|
|
4be148 |
+7G2/K5nalvZikutEC+DyfyBuvDAoxIYzCi3VtQxCalW28Q5hzWV21QsvKTP5QBsh
|
|
|
4be148 |
+RaU2r0O58lZPPvrOrtWQBCudUgsnoraVLrjJshEQ4z/ZA9fVtX2ndCSIoyWpWk01
|
|
|
4be148 |
+gQ==
|
|
|
4be148 |
+-----END CERTIFICATE-----
|
|
|
4be148 |
diff --git a/src/tests/dejagnu/proxy-certs/proxy-no-match.pem b/src/tests/dejagnu/proxy-certs/proxy-no-match.pem
|
|
|
4be148 |
new file mode 100644
|
|
|
4be148 |
index 0000000..a97c1c7
|
|
|
4be148 |
--- /dev/null
|
|
|
4be148 |
+++ b/src/tests/dejagnu/proxy-certs/proxy-no-match.pem
|
|
|
4be148 |
@@ -0,0 +1,54 @@
|
|
|
4be148 |
+-----BEGIN RSA PRIVATE KEY-----
|
|
|
4be148 |
+MIIEpQIBAAKCAQEA1zudnpN8FP7iLn1vgkyTSn/RQxXx1yt6zikHaMrVPjkjXPPU
|
|
|
4be148 |
+oCFpWS3eeI4aQFoj93L5MwZDmSxOflBAqLwV2AMAacrYnNPJIkHtbYKdVsvw9b4I
|
|
|
4be148 |
+NTWqV9/DOODO7UowyMppmO35/pUXaLL+AjHjLw1/EhQ3ZYtqfpAMOkf5TnS5GtqZ
|
|
|
4be148 |
+FlrYgZKE8vTC8BxDKM7FYhWYz7kp/tG3S8O/RTnP7Nd+h1YdpmlHBGfuwIRIJz5x
|
|
|
4be148 |
+Nw6KIcCy3Q0NNoKnh00WVwLmR+x11BGSkMjiZZkwJ5D0RObSg13QD/itrGoV2gtP
|
|
|
4be148 |
+zjQgNPfTrjsMvyOWAAFrWVR3QLTxnnmXsqnXvwIDAQABAoIBAQCqvhpeMDXhGgoo
|
|
|
4be148 |
+Q03wmfrGwPsrMv91aIK1hYrhMPdVs1JAbRYiKh8+pcq07FYa8udRaB4UwkVh/+oM
|
|
|
4be148 |
+/nEs6niRsl/jjQ2l68TFrn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rbU/zuyyCUtggyIOwGLGSY0Axtbci+IHToDBQes+
|
|
|
4be148 |
+6W4WwSUCssWfIZXQDLjFw1oRHnN43fXmX5vsVLi7YvOFHOAa1BDnDtCTZit26xVA
|
|
|
4be148 |
+Mdic66hR2jHP0TE=
|
|
|
4be148 |
+-----END CERTIFICATE-----
|
|
|
4be148 |
diff --git a/src/tests/dejagnu/proxy-certs/proxy-san.pem b/src/tests/dejagnu/proxy-certs/proxy-san.pem
|
|
|
4be148 |
new file mode 100644
|
|
|
4be148 |
index 0000000..ac8bbaa
|
|
|
4be148 |
--- /dev/null
|
|
|
4be148 |
+++ b/src/tests/dejagnu/proxy-certs/proxy-san.pem
|
|
|
4be148 |
@@ -0,0 +1,56 @@
|
|
|
4be148 |
+-----BEGIN RSA PRIVATE KEY-----
|
|
|
4be148 |
+MIIEpQIBAAKCAQEA1zudnpN8FP7iLn1vgkyTSn/RQxXx1yt6zikHaMrVPjkjXPPU
|
|
|
4be148 |
+oCFpWS3eeI4aQFoj93L5MwZDmSxOflBAqLwV2AMAacrYnNPJIkHtbYKdVsvw9b4I
|
|
|
4be148 |
+NTWqV9/DOODO7UowyMppmO35/pUXaLL+AjHjLw1/EhQ3ZYtqfpAMOkf5TnS5GtqZ
|
|
|
4be148 |
+FlrYgZKE8vTC8BxDKM7FYhWYz7kp/tG3S8O/RTnP7Nd+h1YdpmlHBGfuwIRIJz5x
|
|
|
4be148 |
+Nw6KIcCy3Q0NNoKnh00WVwLmR+x11BGSkMjiZZkwJ5D0RObSg13QD/itrGoV2gtP
|
|
|
4be148 |
+zjQgNPfTrjsMvyOWAAFrWVR3QLTxnnmXsqnXvwIDAQABAoIBAQCqvhpeMDXhGgoo
|
|
|
4be148 |
+Q03wmfrGwPsrMv91aIK1hYrhMPdVs1JAbRYiKh8+pcq07FYa8udRaB4UwkVh/+oM
|
|
|
4be148 |
+/nEs6niRsl/jjQ2l68TFrnNByroynvr6l9Q/EeGecF6Ygo7lY1OsFhcLQM5vjarS
|
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XC
|
|
|
4be148 |
+SHYNbxAVo8qBHMjtROm6AKb2YusYqHnkT+U6nc4Pn9UnIzmu4wfoSB+X1vtY24TP
|
|
|
4be148 |
+AtXNYQEG4BkgSrcsgoL+z/+wtZLU8QFk6JRO7Bedq711Oh/taEasZHjRAmnqC5TB
|
|
|
4be148 |
+Ab2fnwWuoVZHqz2qydeywXUKrZlctuRVdjE++wOt9xuMPKFGo0PKDw/SymCe61Q8
|
|
|
4be148 |
+Nc/d2mhz
|
|
|
4be148 |
+-----END CERTIFICATE-----
|
|
|
4be148 |
diff --git a/src/tests/dejagnu/proxy-certs/proxy-subject.pem b/src/tests/dejagnu/proxy-certs/proxy-subject.pem
|
|
|
4be148 |
new file mode 100644
|
|
|
4be148 |
index 0000000..e17918f
|
|
|
4be148 |
--- /dev/null
|
|
|
4be148 |
+++ b/src/tests/dejagnu/proxy-certs/proxy-subject.pem
|
|
|
4be148 |
@@ -0,0 +1,54 @@
|
|
|
4be148 |
+-----BEGIN RSA PRIVATE KEY-----
|
|
|
4be148 |
+MIIEpQIBAAKCAQEA1zudnpN8FP7iLn1vgkyTSn/RQxXx1yt6zikHaMrVPjkjXPPU
|
|
|
4be148 |
+oCFpWS3eeI4aQFoj93L5MwZDmSxOflBAqLwV2AMAacrYnNPJIkHtbYKdVsvw9b4I
|
|
|
4be148 |
+NTWqV9/DOODO7UowyMppmO35/pUXaLL+AjHjLw1/EhQ3ZYtqfpAMOkf5TnS5GtqZ
|
|
|
4be148 |
+FlrYgZKE8vTC8BxDKM7FYhWYz7kp/tG3S8O/RTnP7Nd+h1YdpmlHBGfuwIRIJz5x
|
|
|
4be148 |
+Nw6KIcCy3Q0NNoKnh00WVwLmR+x11BGSkMjiZZkwJ5D0RObSg13QD/itrGoV2gtP
|
|
|
4be148 |
+zjQgNPfTrjsMvyOWAAFrWVR3QLTxnnmXsqnXvwIDAQABAoIBAQCqvhpeMDXhGgoo
|
|
|
4be148 |
+Q03wmfrGwPsrMv91aIK1hYrhMPdV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whzSBmnJH8ha2J82XShPpRq5CZNR9+vTyFwGdGWdPDjTMiXoXAmpRemcEgO
|
|
|
4be148 |
+iO4Gxvcrg/Z06Ys3eLze7QHNMAEwXhC4rUR34j5I2zgU7CEhff3AktLmnKVa8go8
|
|
|
4be148 |
+4BJT/n3XGB+3gdAEihQmgCEZetHH+YxAR0Ppn3ty7fpAlOnbRJqpeu6TMN8x/lL8
|
|
|
4be148 |
+c6JtDWRG
|
|
|
4be148 |
+-----END CERTIFICATE-----
|
|
|
4be148 |
diff --git a/src/util/paste-kdcproxy.py b/src/util/paste-kdcproxy.py
|
|
|
4be148 |
new file mode 100755
|
|
|
4be148 |
index 0000000..1e56b89
|
|
|
4be148 |
--- /dev/null
|
|
|
4be148 |
+++ b/src/util/paste-kdcproxy.py
|
|
|
4be148 |
@@ -0,0 +1,18 @@
|
|
|
4be148 |
+#!/usr/bin/python
|
|
|
4be148 |
+import kdcproxy
|
|
|
4be148 |
+from paste import httpserver
|
|
|
4be148 |
+import os
|
|
|
4be148 |
+import sys
|
|
|
4be148 |
+
|
|
|
4be148 |
+if len(sys.argv) > 1:
|
|
|
4be148 |
+ port = sys.argv[1]
|
|
|
4be148 |
+else:
|
|
|
4be148 |
+ port = 8443
|
|
|
4be148 |
+if len(sys.argv) > 2:
|
|
|
4be148 |
+ pem = sys.argv[2]
|
|
|
4be148 |
+else:
|
|
|
4be148 |
+ pem = '*'
|
|
|
4be148 |
+server = httpserver.serve(kdcproxy.Application(), port=port, ssl_pem=pem,
|
|
|
4be148 |
+ start_loop=False)
|
|
|
4be148 |
+os.write(sys.stdout.fileno(), 'proxy server ready\n')
|
|
|
4be148 |
+server.serve_forever()
|
|
|
4be148 |
--
|
|
|
4be148 |
2.1.0
|
|
|
4be148 |
|