Skip to content

Commit 7b2deaf

Browse files
authored
Generate SHA-256 certificates
Generate SHA-256 certificates as SHA-1 certificates, the current default, are deprecated and support for them will quickly be dropped by major browsers as documented here: https://blog.qualys.com/ssllabs/2014/09/09/sha1-deprecation-what-you-need-to-know
1 parent ca4f78d commit 7b2deaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/Valet/Site.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ function createCertificate($url)
209209
$this->createSigningRequest($url, $keyPath, $csrPath, $confPath);
210210

211211
$this->cli->runAsUser(sprintf(
212-
'openssl x509 -req -days 365 -in %s -signkey %s -out %s -extensions v3_req -extfile %s',
212+
'openssl x509 -req -sha256 -days 365 -in %s -signkey %s -out %s -extensions v3_req -extfile %s',
213213
$csrPath, $keyPath, $crtPath, $confPath
214214
));
215215

0 commit comments

Comments
 (0)