File 'META-INF/encryption.xml' in EPUB not listed in manifest!
#1  Bowcat 10-14-2019, 09:49 AM
Hi there, I am struggling with my epub. The Epub validator comes back all fine but when I upload to Smashwords, I get this response (see header). All this means nothing to me but I am getting help with the epub so any help much appreciated.


#2  pdurrant 10-14-2019, 09:56 AM
Delete the file META-INF/encryption.xml from your ePub.

Or if you need that file (because of, say, obfuscated embedded fonts), then include the file in the ePub's manifest.

What are you using to edit your ePub?

#3  DNSB 10-14-2019, 09:02 PM
An interesting error. I've only seen it once and that was due to a braindead epub editor I was testing which placed encryption.xml in the root of the epub zip file (along with every other file except for container.xml which was in the META-INF directory).

If they are referring to the manifest section of content.opf, a file in the META-INF directory should not be listed there. If they are referring to the optional manifest.xml file which would be located in the META-INF directory, it is optional and I have never seen it used.

OTOH, unless your epub used either encryption or obfuscated fonts, you should not need the encryption.xml file present. You might want to extract it from your epub (use your favourite unzipper) and take a look at it.

The next bit is a sample encryption.xml from an epub with obfuscated fonts:

<?xml version="1.0" encoding="UTF-8"?>
<encryption xmlns="urn:oasis:names:tc:opendocument:xmlns:container" xmlns:enc=""> <enc:EncryptedData> <enc:EncryptionMethod Algorithm=""/> <enc:CipherData> <enc:CipherReference URI="OEBPS/Fonts/font0029A.ttf"/> </enc:CipherData> </enc:EncryptedData> <enc:EncryptedData> <enc:EncryptionMethod Algorithm=""/> <enc:CipherData> <enc:CipherReference URI="OEBPS/Fonts/font0029B.ttf"/> </enc:CipherData> </enc:EncryptedData>

Today's Posts | Search this Thread | Login | Register