order modules
add configuration to supporting functionality
This commit is contained in:
@ -2,14 +2,15 @@ package certificate
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"crypto/rand"
|
||||
"crypto/rsa"
|
||||
"crypto/x509"
|
||||
"crypto/x509/pkix"
|
||||
"encoding/pem"
|
||||
"math/big"
|
||||
"strconv"
|
||||
"time"
|
||||
)
|
||||
|
||||
func CreateCA() ([]byte, []byte, []byte, error) {
|
||||
|
@ -2,14 +2,15 @@ package certificate
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"crypto/rand"
|
||||
"crypto/rsa"
|
||||
"crypto/x509"
|
||||
"crypto/x509/pkix"
|
||||
"encoding/pem"
|
||||
"math/big"
|
||||
"strconv"
|
||||
"time"
|
||||
)
|
||||
|
||||
func CreateCert() ([]byte, []byte, []byte, error) {
|
||||
|
@ -2,11 +2,12 @@ package certificate
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"log"
|
||||
|
||||
"crypto/rand"
|
||||
"crypto/tls"
|
||||
"crypto/x509"
|
||||
"encoding/pem"
|
||||
"log"
|
||||
)
|
||||
|
||||
func CreateServerCert() tls.Certificate {
|
||||
|
Reference in New Issue
Block a user