order modules

add configuration to supporting functionality
This commit is contained in:
2023-03-18 14:47:06 -05:00
parent 173957c034
commit d5963a693d
11 changed files with 48 additions and 30 deletions

View File

@ -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) {

View File

@ -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) {

View File

@ -2,11 +2,12 @@ package certificate
import (
"bytes"
"log"
"crypto/rand"
"crypto/tls"
"crypto/x509"
"encoding/pem"
"log"
)
func CreateServerCert() tls.Certificate {