Skip to content

Commit

Permalink
Fix "internal name" pkilint findings
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongable committed Apr 23, 2024
1 parent 21027d1 commit 96fae62
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 24 deletions.
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ services:
# TODO: Remove this when ServerAddress is deprecated in favor of SRV records
# and DNSAuthority.
dns: 10.55.55.10
extra_hosts:
# Allow the boulder container to be reached as "boulder.ca", so that we
# can put that name inside our integration test certs (e.g. as a crl
# url) and have it look like a publicly-accessible name.
- "boulder.ca:10.77.77.77"
ports:
- 4001:4001 # ACMEv2
- 4002:4002 # OCSP
Expand Down
2 changes: 2 additions & 0 deletions test/aia-test-srv/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"os"
"path"
"regexp"
"strings"
"time"

"github.com/letsencrypt/boulder/cmd"
Expand All @@ -25,6 +26,7 @@ func (srv *aiaTestSrv) handleIssuer(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusBadRequest)
return
}
issuerName = strings.ReplaceAll(issuerName, "-", " ")

issuer, ok := srv.issuersByName[issuerName]
if !ok {
Expand Down
36 changes: 18 additions & 18 deletions test/config-next/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@
"issuers": [
{
"active": true,
"issuerURL": "http://127.0.0.1:4502/int ecdsa a",
"ocspURL": "http://127.0.0.1:4002/",
"crlURLBase": "http://127.0.0.1:4501/ecdsa-a/",
"issuerURL": "http://boulder.ca:4502/int-ecdsa-a",
"ocspURL": "http://boulder.ca:4002/",
"crlURLBase": "http://boulder.ca:4501/ecdsa-a/",
"location": {
"configFile": "/hierarchy/int-ecdsa-a.pkcs11.json",
"certFile": "/hierarchy/int-ecdsa-a.cert.pem",
Expand All @@ -76,9 +76,9 @@
},
{
"active": true,
"issuerURL": "http://127.0.0.1:4502/int ecdsa b",
"ocspURL": "http://127.0.0.1:4002/",
"crlURLBase": "http://127.0.0.1:4501/ecdsa-b/",
"issuerURL": "http://boulder.ca:4502/int-ecdsa-b",
"ocspURL": "http://boulder.ca:4002/",
"crlURLBase": "http://boulder.ca:4501/ecdsa-b/",
"location": {
"configFile": "/hierarchy/int-ecdsa-b.pkcs11.json",
"certFile": "/hierarchy/int-ecdsa-b.cert.pem",
Expand All @@ -87,9 +87,9 @@
},
{
"active": false,
"issuerURL": "http://127.0.0.1:4502/int ecdsa c",
"ocspURL": "http://127.0.0.1:4002/",
"crlURLBase": "http://127.0.0.1:4501/ecdsa-c/",
"issuerURL": "http://boulder.ca:4502/int-ecdsa-c",
"ocspURL": "http://boulder.ca:4002/",
"crlURLBase": "http://boulder.ca:4501/ecdsa-c/",
"location": {
"configFile": "/hierarchy/int-ecdsa-c.pkcs11.json",
"certFile": "/hierarchy/int-ecdsa-c.cert.pem",
Expand All @@ -98,9 +98,9 @@
},
{
"active": true,
"issuerURL": "http://127.0.0.1:4502/int rsa a",
"ocspURL": "http://127.0.0.1:4002/",
"crlURLBase": "http://127.0.0.1:4501/rsa-a/",
"issuerURL": "http://boulder.ca:4502/int-rsa-a",
"ocspURL": "http://boulder.ca:4002/",
"crlURLBase": "http://boulder.ca:4501/rsa-a/",
"location": {
"configFile": "/hierarchy/int-rsa-a.pkcs11.json",
"certFile": "/hierarchy/int-rsa-a.cert.pem",
Expand All @@ -109,9 +109,9 @@
},
{
"active": true,
"issuerURL": "http://127.0.0.1:4502/int rsa b",
"ocspURL": "http://127.0.0.1:4002/",
"crlURLBase": "http://127.0.0.1:4501/rsa-b/",
"issuerURL": "http://boulder.ca:4502/int-rsa-b",
"ocspURL": "http://boulder.ca:4002/",
"crlURLBase": "http://boulder.ca:4501/rsa-b/",
"location": {
"configFile": "/hierarchy/int-rsa-b.pkcs11.json",
"certFile": "/hierarchy/int-rsa-b.cert.pem",
Expand All @@ -120,9 +120,9 @@
},
{
"active": false,
"issuerURL": "http://127.0.0.1:4502/int rsa c",
"ocspURL": "http://127.0.0.1:4002/",
"crlURLBase": "http://127.0.0.1:4501/rsa-c/",
"issuerURL": "http://boulder.ca:4502/int-rsa-c",
"ocspURL": "http://boulder.ca:4002/",
"crlURLBase": "http://boulder.ca:4501/rsa-c/",
"location": {
"configFile": "/hierarchy/int-rsa-c.pkcs11.json",
"certFile": "/hierarchy/int-rsa-c.cert.pem",
Expand Down
12 changes: 6 additions & 6 deletions test/config/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
{
"useForRSALeaves": false,
"useForECDSALeaves": true,
"issuerURL": "http://127.0.0.1:4502/int ecdsa a",
"ocspURL": "http://127.0.0.1:4002/",
"issuerURL": "http://boulder.ca:4502/int-ecdsa-a",
"ocspURL": "http://boulder.ca:4002/",
"location": {
"configFile": "/hierarchy/int-ecdsa-a.pkcs11.json",
"certFile": "/hierarchy/int-ecdsa-a.cert.pem",
Expand All @@ -72,8 +72,8 @@
{
"useForRSALeaves": true,
"useForECDSALeaves": true,
"issuerURL": "http://127.0.0.1:4502/int rsa a",
"ocspURL": "http://127.0.0.1:4002/",
"issuerURL": "http://boulder.ca:4502/int-rsa-a",
"ocspURL": "http://boulder.ca:4002/",
"location": {
"configFile": "/hierarchy/int-rsa-a.pkcs11.json",
"certFile": "/hierarchy/int-rsa-a.cert.pem",
Expand All @@ -83,8 +83,8 @@
{
"useForRSALeaves": false,
"useForECDSALeaves": false,
"issuerURL": "http://127.0.0.1:4502/int rsa b",
"ocspURL": "http://127.0.0.1:4002/",
"issuerURL": "http://boulder.ca:4502/int-rsa-b",
"ocspURL": "http://boulder.ca:4003/",
"location": {
"configFile": "/hierarchy/int-rsa-b.pkcs11.json",
"certFile": "/hierarchy/int-rsa-b.cert.pem",
Expand Down

0 comments on commit 96fae62

Please sign in to comment.