|
Description
|
I used pktool to create a self-signed cert:
pktool gencert keystore=file \
outcert=etc/certs/Bogus \
outkey=etc/keys/Bogus \
subject="CN=Bogus,OU=Solaris Cryptographic Framework,O=Sun Microsystems" \
serial=0x9999
I wanted to see the results. The invocation:
pktools list keystore=file objtype=cert dir=etc/certs
displays in part:
16. (X.509 certificate)
Filename: etc/certs/Bogus
ID: 55:83:45:b4:f5:b0:66:71:b2:99:4d:19:59:40:9a:dd:bf:3d:bf:f0
Subject: O= xxxxx OU=Solaris Cryptographic Framework, CN=Bogus
Issuer: O= xxxxx OU=Solaris Cryptographic Framework, CN=Bogus Serial: 0x-6667
Please note the Serial value.
The pktool manpage (my sole source of information on
certificate serial numbers) says:
serial=hex-serial-number
Specifies a unique serial number for a certificate. The
serial number must be specified as a hex value. Example:
0x0102030405060708090a0b0c0d0e0f
There's nothing there to suggest that the serial is to be treated as
a 2's complement signed number. Further, pktool gencert with
... serial=0x-6667 ...
just gives a usage message.
|