I have everything created config.cnf, privatekey, public key and then going for csr with proper command but still getting same error ‘Invalid-CSR’
{“errorCode”:“400”,“errorCategory”:“Invalid-CSR”,“errorMessage”:“The provided Certificate Signing Request (CSR) is invalid.”}
execute_command([OPENSSL_PATH, “ecparam”, “-name”, “secp256k1”, “-genkey”, “-noout”, “-out”, os.path.join(cert_path, ‘privatekey.pem’)])
Generate public key
execute_command([OPENSSL_PATH, “ec”, “-in”, os.path.join(cert_path, ‘privatekey.pem’), “-pubout”, “-conv_form”, “compressed”, “-out”, os.path.join(cert_path, ‘publickey.pem’)])
Generate CSR (Certificate Signing Request)
execute_command([OPENSSL_PATH, "base64", "-d", "-in", os.path.join(cert_path, 'publickey.pem'), "-out", os.path.join(cert_path, 'publickey.bin')])
#GENRATE CSR
execute_command([OPENSSL_PATH, “req”, “-new”, “-sha256”, “-key”, private_key_path, “-extensions”, “v3_req”, “-config”, config_path, “-out”, csr_path])
CONVERTING CSR File to BASE64
execute_command([OPENSSL_PATH, “base64”, “-in”, csr_path, “-out”, csr_base64_encoded_file_path])
plz help