fix(core): update
This commit is contained in:
parent
11c550e4de
commit
ff877c6843
@ -14,13 +14,16 @@ PRIVATE_KEY="$CERT_DIR/private.key"
|
||||
CERTIFICATE="$CERT_DIR/certificate.crt"
|
||||
P12_CERTIFICATE="$CERT_DIR/certificate.p12"
|
||||
|
||||
# Certificate subject details
|
||||
SUBJECT="/C=US/ST=California/L=San Francisco/O=Your Company/OU=Your Department/CN=www.yourdomain.com"
|
||||
|
||||
# Generate a private key
|
||||
openssl genpkey -algorithm RSA -out "$PRIVATE_KEY" -pkeyopt rsa_keygen_bits:2048
|
||||
|
||||
# Create a self-signed certificate
|
||||
openssl req -new -x509 -days 365 -key "$PRIVATE_KEY" -out "$CERTIFICATE"
|
||||
# Create a self-signed certificate with no prompts
|
||||
openssl req -new -x509 -days 365 -key "$PRIVATE_KEY" -out "$CERTIFICATE" -subj "$SUBJECT"
|
||||
|
||||
# Convert to P12 format
|
||||
openssl pkcs12 -export -out "$P12_CERTIFICATE" -inkey "$PRIVATE_KEY" -in "$CERTIFICATE"
|
||||
openssl pkcs12 -export -out "$P12_CERTIFICATE" -inkey "$PRIVATE_KEY" -in "$CERTIFICATE" -passout pass:YourPassword
|
||||
|
||||
echo "P12 certificate generated at $P12_CERTIFICATE"
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/smartsign',
|
||||
version: '1.0.2',
|
||||
version: '1.0.3',
|
||||
description: 'sign documents'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user