aboutsummaryrefslogtreecommitdiff
path: root/certificate_data.go
diff options
context:
space:
mode:
authorGibheer <gibheer@gmail.com>2015-03-16 17:15:29 +0100
committerGibheer <gibheer@gmail.com>2015-03-16 17:15:29 +0100
commit31bf8bc739b5066eaaf25294a202170ffede4bc2 (patch)
tree2317a331b7172a9a75584a8698f1db818f653826 /certificate_data.go
parent52102b0f24b03be251efa863c3b7cd657f09d5d9 (diff)
certificate generation is in
The hole certificate sign request and certificate creation process was pulled into pki, which made pkictl a bit smaller in code. There are still some things missing, but the initial support for certificates is done!
Diffstat (limited to 'certificate_data.go')
-rw-r--r--certificate_data.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/certificate_data.go b/certificate_data.go
deleted file mode 100644
index 76f3323..0000000
--- a/certificate_data.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package main
-
-import (
- "crypto/x509"
- "crypto/x509/pkix"
- "net"
-)
-
-type (
- certificateData struct {
- Subject pkix.Name
-
- DnsNames []string
- EmailAddresses []string
- IpAddresses []net.IP
- }
-)
-
-func (c *certificateData) GenerateCSR() *x509.CertificateRequest {
- csr := &x509.CertificateRequest{}
-
- csr.Subject = c.Subject
- csr.DNSNames = c.DnsNames
- csr.IPAddresses = c.IpAddresses
- csr.EmailAddresses = c.EmailAddresses
-
- return csr
-}