Skip to content

Commit

Permalink
Merge pull request #81 from Automattic/update-certs
Browse files Browse the repository at this point in the history
fix: update certificate details
  • Loading branch information
sjinks authored Aug 18, 2024
2 parents 4ae7ba7 + 56e1fcd commit 6f4961f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/lando-core/scripts/add-cert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ lando_info ""

lando_info "Generating certs..."
openssl genrsa -out /certs/cert.key 2048
openssl req -new -key /certs/cert.key -out /certs/cert.csr -subj "/C=US/ST=California/L=San Francisco/O=Lando/OU=Bespin/CN=${COMMON_NAME}"
openssl req -new -key /certs/cert.key -out /certs/cert.csr -subj "/C=US/ST=California/L=San Francisco/O=Automattic/OU=WPVIP/CN=${COMMON_NAME}"
openssl x509 \
-req \
-in /certs/cert.csr \
Expand Down
2 changes: 1 addition & 1 deletion plugins/lando-core/scripts/setup-ca.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if [ ! -f "$LANDO_CA_CERT" ]; then
-sha256 \
-days 8675 \
-out $LANDO_CA_CERT \
-subj "/C=US/ST=California/L=San Francisco/O=Lando/OU=Bespin/CN=Lando Local CA"
-subj "/C=US/ST=California/L=San Francisco/O=Automattic/OU=WPVIP/CN=WPVIP Local CA"
# Set the cert and key on host to host-uid/gid ownership
chown "$LANDO_HOST_UID:$LANDO_HOST_GID" "$LANDO_CA_KEY"
chown "$LANDO_HOST_UID:$LANDO_HOST_GID" "$LANDO_CA_CERT"
Expand Down

0 comments on commit 6f4961f

Please sign in to comment.