Skip to content

Conversation

@ewoutp
Copy link
Contributor

@ewoutp ewoutp commented Apr 26, 2018

This PR replaces the custom code for generating a certificate with go-certificates.

Sample of generated keyfile:

-----BEGIN CERTIFICATE-----
MIIBeTCCASCgAwIBAgIQb8S89uzuneBt0L0+60T8tjAKBggqhkjOPQQDAjATMREw
DwYDVQQKEwhBcmFuZ29EQjAeFw0xODA0MjYwODMzMTRaFw0xOTA0MjYwODMzMTRa
MBMxETAPBgNVBAoTCEFyYW5nb0RCMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE
pmkoYRYuNqHOxFzAyO0tgRzEc6apmr+HPekXN/i4eOdcW0OO+j5g/UKOgZYR/y8v
gufZmwqU7EnJ4VsuG6JO9KNWMFQwDgYDVR0PAQH/BAQDAgWgMBkGA1UdJQQSMBAG
BFUdJQAGCCsGAQUFBwMBMAwGA1UdEwEB/wQCMAAwGQYDVR0RBBIwEIIOYXJhbmdv
ZC5zZXJ2ZXIwCgYIKoZIzj0EAwIDRwAwRAIgHy4U33B1GZ3lm5MJYET05gPu9/rp
+ZflFQs/W/IBj1MCIER+uyZLv4apuVsMAG5P4E2O1+EoCBKErBJx9uNPCXdj
-----END CERTIFICATE-----
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEINuY8i35X5XXdYg2LGOrSgWpy03+s0j3Sqzk8xQRhmoaoAoGCCqGSM49
AwEHoUQDQgAEpmkoYRYuNqHOxFzAyO0tgRzEc6apmr+HPekXN/i4eOdcW0OO+j5g
/UKOgZYR/y8vgufZmwqU7EnJ4VsuG6JO9A==
-----END EC PRIVATE KEY-----

Copy link
Contributor

@neunhoef neunhoef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ewoutp ewoutp merged commit 436a406 into master Apr 26, 2018
@ewoutp ewoutp deleted the ssl-auto-keyfile-with-curves branch April 26, 2018 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants