mirror of https://github.com/shred/acme4j
Verify tls-alpn-01 certificate
parent
22e8969b89
commit
c1ea9200ec
|
@ -90,7 +90,7 @@ public class CertificateUtilsTest {
|
|||
* with domain name creates a good certificate.
|
||||
*/
|
||||
@Test
|
||||
public void testCreateTlsAlpn01Certificate() throws IOException, CertificateParsingException {
|
||||
public void testCreateTlsAlpn01Certificate() throws Exception {
|
||||
var keypair = KeyPairUtils.createKeyPair(2048);
|
||||
var subject = "example.com";
|
||||
var acmeValidationV1 = AcmeUtils.sha256hash("rSoI9JpyvFi-ltdnBW0W1DjKstzG7cHixjzcOjwzAEQ");
|
||||
|
@ -123,6 +123,8 @@ public class CertificateUtilsTest {
|
|||
|
||||
assertThat(derOctetString.getOctets()).isEqualTo(test);
|
||||
}
|
||||
|
||||
cert.verify(keypair.getPublic());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue