diff options
-rw-r--r-- | create_sign_request.go | 2 | ||||
-rw-r--r-- | private_key.go | 2 | ||||
-rw-r--r-- | public_key.go | 2 | ||||
-rw-r--r-- | sign_request.go | 10 | ||||
-rw-r--r-- | verify_signature.go | 2 |
5 files changed, 18 insertions, 0 deletions
diff --git a/create_sign_request.go b/create_sign_request.go index dfb9f9f..75b7993 100644 --- a/create_sign_request.go +++ b/create_sign_request.go @@ -1,5 +1,7 @@ package main +// create a sign request needed for the final certificate + import ( "crypto" "crypto/rand" diff --git a/private_key.go b/private_key.go index 25d7f55..785b305 100644 --- a/private_key.go +++ b/private_key.go @@ -1,5 +1,7 @@ package main +// generate an ecdsa or rsa private key + import ( "crypto" "crypto/elliptic" diff --git a/public_key.go b/public_key.go index 815ba7b..cbafc49 100644 --- a/public_key.go +++ b/public_key.go @@ -1,5 +1,7 @@ package main +// create a public key from a private key + import ( "crypto/x509" "encoding/pem" diff --git a/sign_request.go b/sign_request.go new file mode 100644 index 0000000..234408c --- /dev/null +++ b/sign_request.go @@ -0,0 +1,10 @@ +package main + +import ( + +) + +// sign a certificate request to create a new certificate +func sign_request() { + +} diff --git a/verify_signature.go b/verify_signature.go index b661e9a..2b2b16b 100644 --- a/verify_signature.go +++ b/verify_signature.go @@ -1,5 +1,7 @@ package main +// verify a signature generated with a private key + import ( "crypto/ecdsa" "crypto/sha256" |