summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2020-08-27 17:31:41 +0200
committerJon Marius Venstad <venstad@gmail.com>2020-08-27 17:31:41 +0200
commit325ecffb37c24ca9538d105b830aaf1e5991c716 (patch)
tree3e111dd93f46ef8a2750a150bd884024fd4aada1 /python
parent4615ca63b9b5bb08e11b50cb07d57b5610e9aaf9 (diff)
Use a cheaper elliptic curve
Diffstat (limited to 'python')
-rw-r--r--python/vespa/vespa/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vespa/vespa/package.py b/python/vespa/vespa/package.py
index 4312380dcfe..03f394f4aa5 100644
--- a/python/vespa/vespa/package.py
+++ b/python/vespa/vespa/package.py
@@ -527,7 +527,7 @@ class VespaCloud(object):
@staticmethod
def create_certificate_pair() -> (ec.EllipticCurvePrivateKey, x509.Certificate):
- key = ec.generate_private_key(ec.SECP521R1, default_backend())
+ key = ec.generate_private_key(ec.SECP384R1, default_backend())
name = x509.Name([x509.NameAttribute(x509.NameOID.COMMON_NAME, u'localhost')])
certificate = x509.CertificateBuilder() \
.subject_name(name) \