(base) vipulpopat@vipulpopat-XPS-13-9370:~/Documents/wiremock$ keytool -genkeypair -alias baeldung -keyalg RSA -keysize 2048 -storetype PKCS12 -keystore baeldung.p12 -validity 3650
Enter keystore password:
Re-enter new password:
What is your first and last name?
[Unknown]:
What is the name of your organizational unit?
[Unknown]:
What is the name of your organization?
[Unknown]:
What is the name of your City or Locality?
[Unknown]:
What is the name of your State or Province?
[Unknown]:
What is the two-letter country code for this unit?
[Unknown]:
Is CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown correct?
[no]: yes
(base) vipulpopat@vipulpopat-XPS-13-9370:~/Documents/wiremock$ sudo java -jar wiremock-jre8-standalone-2.27.2.jar --https-port 443 --port 80 --https-keystore baeldung.p12 --keystore-type PKCS12 --keystore-password pass1234