openssl req -newkey rsa:4096 -x509 -keyout cakey.pem -out cacert.pem -days 3650 -nodesGenerating a 4096 bit RSA private key.............................++++........................................................................................................++++writing new private key to 'cakey.pem'-----You are about to be asked to enter information that will be incorporatedinto your certificate request.What you are about to enter is what is called a Distinguished Name or a DN.There are quite a few fields but you can leave some blankFor some fields there will be a default value,If you enter '.', the field will be left blank.-----Country Name (2 letter code) []:XXState or Province Name (full name) []:stateLocality Name (eg, city) []:cityOrganization Name (eg, company) []:companyOrganizational Unit Name (eg, section) []:sectionCommon Name (eg, fully qualified host name) []:fqhnEmail Address []:xxxxopenssl pkcs12 -export -in cacert.pem -inkey cakey.pem -out identity.p12 -name "mykey"
Enter Export Password:
Verifying - Enter Export Password:/nix/store/p97kg0dww481x0s0nfqpjpl70ba24hi9-openjdk-8u242-b08-jre/lib/openjdk/jre/bin/java -jar JSignPdf.jar -kst PKCS12 -ksf /tmp/timestamp/jsignpdf-1.6.4/identity.p12 -kp xxx /tmp/times
tamp/file.pdf
WARN net.sf.jsignpdf.utils.PropertyProvider$ProperyProviderException: Property file /root/.JSignPdf doesn't exist.
DEBUG Relaxing SSL security.
INFO Checking input and output PDF paths.
INFO Getting key alias
INFO Used key alias: mykey
INFO Loading private key
INFO Getting certificate chain
INFO No private key was found. Check the keystore settings (keystore type, filepath, password, key alias).
INFO Finished: Creating of signature failed.openssl pkcs12 -export -in mykeycert.pem.txt -out my.pkcs12 -name myStore -noiter -nomaciter
Enter Export Password:
Verifying - Enter Export Password:
/nix/store/p97kg0dww481x0s0nfqpjpl70ba24hi9-openjdk-8u242-b08-jre/lib/openjdk/jre/bin/java -jar JSignPdf.jar -kst PKCS12 -ksf /tmp/timestamp/jsignpdf-1.6.4/my.pkcs12 -kp xxx /tmp/timestam
p/file.pdf
WARN net.sf.jsignpdf.utils.PropertyProvider$ProperyProviderException: Property file /root/.JSignPdf doesn't exist.
DEBUG Relaxing SSL security.
INFO Checking input and output PDF paths.
INFO Getting key alias
INFO Used key alias: mystore
INFO Loading private key
INFO Getting certificate chain
INFO No private key was found. Check the keystore settings (keystore type, filepath, password, key alias).
INFO Finished: Creating of signature failed.