File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
coderd/notifications/dispatch Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ V3_EXT_CONF="v3_ext.conf"
14
14
openssl genpkey -algorithm RSA -out $CA_KEY -pkeyopt rsa_keygen_bits:2048
15
15
16
16
# Create the CA configuration file
17
- cat > $CA_CONF << EOL
17
+ cat > $CA_CONF << EOL
18
18
[ req ]
19
19
distinguished_name = req_distinguished_name
20
20
x509_extensions = v3_ca
@@ -42,7 +42,7 @@ openssl req -new -x509 -key $CA_KEY -out $CA_CERT -days 3650 -config $CA_CONF -e
42
42
openssl genpkey -algorithm RSA -out $SERVER_KEY -pkeyopt rsa_keygen_bits:2048
43
43
44
44
# Create the server configuration file
45
- cat > $SERVER_CONF << EOL
45
+ cat > $SERVER_CONF << EOL
46
46
[ req ]
47
47
distinguished_name = req_distinguished_name
48
48
req_extensions = v3_req
69
69
openssl req -new -key $SERVER_KEY -out $SERVER_CSR -config $SERVER_CONF
70
70
71
71
# Create the server extensions configuration file
72
- cat > $V3_EXT_CONF << EOL
72
+ cat > $V3_EXT_CONF << EOL
73
73
authorityKeyIdentifier=keyid,issuer
74
74
basicConstraints=CA:FALSE
75
75
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
@@ -87,4 +87,4 @@ openssl x509 -req -in $SERVER_CSR -CA $CA_CERT -CAkey $CA_KEY -CAcreateserial -o
87
87
# Verify the server certificate
88
88
openssl x509 -in $SERVER_CERT -text -noout | grep -A 1 " Subject Alternative Name"
89
89
90
- echo " CA and server certificates generated successfully."
90
+ echo " CA and server certificates generated successfully."
Original file line number Diff line number Diff line change @@ -8,16 +8,17 @@ import (
8
8
"sync"
9
9
"testing"
10
10
11
- "cdr.dev/slog"
12
- "cdr.dev/slog/sloggers/slogtest"
13
- "github.com/coder/serpent"
14
11
"github.com/emersion/go-sasl"
15
12
"github.com/emersion/go-smtp"
16
13
"github.com/google/uuid"
17
14
"github.com/stretchr/testify/assert"
18
15
"github.com/stretchr/testify/require"
19
16
"go.uber.org/goleak"
20
17
18
+ "cdr.dev/slog"
19
+ "cdr.dev/slog/sloggers/slogtest"
20
+ "github.com/coder/serpent"
21
+
21
22
"github.com/coder/coder/v2/coderd/notifications/dispatch"
22
23
"github.com/coder/coder/v2/coderd/notifications/types"
23
24
"github.com/coder/coder/v2/codersdk"
You can’t perform that action at this time.
0 commit comments