+4
-4
lines changedFilter options
+4
-4
lines changed Original file line number Diff line number Diff line change
@@ -6,8 +6,8 @@ import (
6
6
"crypto/x509/pkix"
7
7
"errors"
8
8
"fmt"
9
-
"io/ioutil"
10
9
"net"
10
+
"os"
11
11
"strings"
12
12
"time"
13
13
@@ -41,7 +41,7 @@ type Name struct {
41
41
StreetAddress string `json:"street_address,omitempty"`
42
42
PostalCode string `json:"postal_code,omitempty"`
43
43
Names []interface{} `json:"names,omitempty"`
44
-
//ExtraNames []interface{} `json:"extra_names,omitempty"`
44
+
// ExtraNames []interface{} `json:"extra_names,omitempty"`
45
45
}
46
46
47
47
// ParseName parses a new name from a *pkix.Name
@@ -105,7 +105,7 @@ func ParseCertificate(cert *x509.Certificate) *Certificate {
105
105
106
106
// ParseCertificateFile parses x509 certificate file.
107
107
func ParseCertificateFile(certFile string) (*Certificate, error) {
108
-
certPEM, err := ioutil.ReadFile(certFile)
108
+
certPEM, err := os.ReadFile(certFile)
109
109
if err != nil {
110
110
return nil, err
111
111
}
@@ -135,7 +135,7 @@ func ParseCSRPEM(csrPEM []byte) (*x509.CertificateRequest, error) {
135
135
136
136
// ParseCSRFile uses the helper to parse an x509 CSR PEM file.
137
137
func ParseCSRFile(csrFile string) (*x509.CertificateRequest, error) {
138
-
csrPEM, err := ioutil.ReadFile(csrFile)
138
+
csrPEM, err := os.ReadFile(csrFile)
139
139
if err != nil {
140
140
return nil, err
141
141
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4