Is serial number a unique key for X509 certificate?

No. For example, OpenSSL let’s the user set this when they create certificates. See: http://www.openssl.org/docs/apps/x509.html -set_serial n specifies the serial number to use. This option can be used with either the -signkey or -CA options. If used in conjunction with the -CA option the serial number file (as specified by the -CAserial or -CAcreateserial options) … Read more

How to get hard disk serial number using Python

Linux As you suggested, fcntl is the way to do this on Linux. The C code you want to translate looks like this: static struct hd_driveid hd; int fd; if ((fd = open(“/dev/hda”, O_RDONLY | O_NONBLOCK)) < 0) { printf(“ERROR opening /dev/hda\n”); exit(1); } if (!ioctl(fd, HDIO_GET_IDENTITY, &hd)) { printf(“%.20s\n”, hd.serial_no); } else if (errno … Read more

Serials on NFC Tags – truly unique? cloneable?

Are serial numbers of NFC tags truely unique? That depends on the tag product and what you consider truely unique. E.g.: ISO 14443 Type A tags with 4 byte serial numbers: There certainly exist duplicates (mainly because there is no clear scheme to divide the available range of serial numbers among the various manufacturers) and … Read more

Android Unique Serial Number

Taking into consideration that my application targets Android 4.0 (API 14) and above, is the android.os.Build.SERIAL number for the android devices unique for each device ? According to this useful article in the Android Developers blog, android.os.Build.SERIAL should be unique if it is available. From the article: Devices without telephony are required to report a … Read more

Android: How to programmatically access the device serial number shown in the AVD manager (API Version 8)

This is the hardware serial number. To access it on Android Q (>= SDK 29) android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE is required. Only system apps can require this permission. If the calling package is the device or profile owner then the READ_PHONE_STATE permission suffices. Android 8 and later (>= SDK 26) use android.os.Build.getSerial() which requires the dangerous permission READ_PHONE_STATE. … Read more

How to find serial number of Android device?

TelephonyManager tManager = (TelephonyManager)myActivity.getSystemService(Context.TELEPHONY_SERVICE); String uid = tManager.getDeviceId(); getSystemService is a method from the Activity class. getDeviceID() will return the MDN or MEID of the device depending on which radio the phone uses (GSM or CDMA). Each device MUST return a unique value here (assuming it’s a phone). This should work for any Android device … Read more