Skip to content

Comments

net/smtp: replace localhostCert and localhostKey#77505

Open
toddy15 wants to merge 1 commit intogolang:masterfrom
toddy15:main
Open

net/smtp: replace localhostCert and localhostKey#77505
toddy15 wants to merge 1 commit intogolang:masterfrom
toddy15:main

Conversation

@toddy15
Copy link

@toddy15 toddy15 commented Feb 9, 2026

The previous certificate expired on 2026-03-18 19:27:54 UTC. A new certificate can be generated by running this command in the directory src/crypto/tls:

$ go run generate_cert.go --rsa-bits 2048 --host 127.0.0.1,::1,example.com --ca --start-date "Jan 1 00:00:00 1970" --duration=1000000h

This patch adds a newly generated certificate which expires on 2084-01-29 16:00:00 UTC.

Fixes: #77504

The previous certificate expired on 2026-03-18 19:27:54 UTC.
A new certificate can be generated by running this command
in the directory src/crypto/tls:

$ go run generate_cert.go --rsa-bits 2048 --host 127.0.0.1,::1,example.com --ca --start-date "Jan 1 00:00:00 1970" --duration=1000000h

This patch adds a newly generated certificate which expires
on 2084-01-29 16:00:00 UTC.

Fixes: golang#77504
@google-cla
Copy link

google-cla bot commented Feb 9, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

net/smtp: expiry date of localhostCert for testing is too short

1 participant