Converting Netscape cert7.db file to PEM format

Does anyone know of a recommended way to convert a Netscape cert7.db file to PEM format so that clients can connect to the Sun Directory securely over TSL/SSL using, for example, Perl/Net::LDAPS. Net::LDAPS and other client ldap implementations often need to refer to a certificate store in PEM format.
I figured out how to do this with the old iPlanet Directory 4.16 series,
but with the new Sun 5.2 series, I'm hitting an interesting wall.
First, I install my campus CA's cert as well as the server cert (oldsage.berkeley.edu) to be used for TLS/SSL connections...
%/opt/sunone/lib/nss/bin/certutil -A -n "UCB-CA" -t "CT,," -a -i /home/staff/robreid/ssl-certs/ucb-ca.cer -d /directoryServerPath/alias -P 'slapd-oldsage-'
%/opt/sunone/lib/nss/bin/certutil -A -n "oldsage.berkeley.edu" -t "u,," -a -i /home/staff/robreid/ssl-certs/oldsage.cer -d /directoryServerPath/alias -P slapd-oldsage-
I can verity that the certs are installed properly...
%/opt/sunone/lib/nss/bin/certutil -L -d /directoryServerPath/alias -P slapd-oldsage-
Certificate Name Trust Attributes
server-cert u,,
UCB Issuing Certificate Authority 02 CT,,
Now, the conversion to PEM is interesting.
First I have to convert the cert7.db and key3.db files to a PKCS12 format, and this is where the problem begins... (Note, I do strip out the private key(s) as well but I'm not going to document those steps here)
%/opt/sunone/lib/nss/bin/pk12util -o /home/staff/robreid/ssl-certs/oldsage-alias/oldage.pkcs12.cert2 -n "server-cert" -d /directoryServerPath/alias -P 'slapd-oldsage-'
Notice that I have to refer to the certificate as 'server-cert' rather then
'oldsage.berkeley.edu'. This will cause problems after the next steps, where I convert the PCKS12 file to PEM format...
%/usr/local/openssl/bin/openssl pkcs12 -in /home/staff/robreid/ssl-certs/oldsage-alias/oldage.pkcs12.cert2 -out /home/staff/robreid/ssl-certs/oldsage-alias/oldsage.pem.cert
%ln -s oldsage.pem.cert `/usr/local/openssl/bin/openssl x509 -hash -noout < oldsage.pem.cert`.0
And the problem is that the certificate baggage in the PEM file is named
'server-cert' and not 'oldsage.berkeley.edu', which then causes client to encounter the 'hostname mismatch' error when attempting to verify the certificate as it tries to connect securely to the Directory.
Does anyone know where I'm going wrong and of a better technique to use?
Also, does the Sun Directory Proxy Server also use the same Netscape cert7/key3.db system for it's certificate database/store?
Thanks a bunch for any insights,
Rob Chevalier
University of California, Berkeley

Hi,
The necessary certificates have been sent to me
me in .cer file format.....can someone fill me in on
how to create this database file? I'm currently
working in a Win2K environment, incase that is
relevant.You have several options. The easiest way to create the certificate database if you import the certificate using a Netscape Communicator or Mozilla browser.
Alternatively, you can use certutil from NSS (http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html)
to create an empty database:
certutil -N -d .
(this creates an empty database in the current directory)
Next, you will have to add the certificates to the database:
certutil -A -d . -n <an arbitrary name for your certificate> -t C,, -i <certificate-file>
Check the above referenced manual for the description of these options.
Also, chapter 30 of the Directory Server Resource Kit Reference (http://docs.sun.com/source/816-6400-10/pkcsutil.html) has pointers to various tools that can be useful during development.
I hope this helps.
Bertold

Similar Messages

  • How Do I Convert LV7.1 Datalog Files to LV8 Format?

    I have several LabVIEW 7.1 datalog files that generate Error 71 (File data type conflict) when I try to open them in LabVIEW 8 using the new Open/Create/Replace Datalog vi with my original typedef constants wired to the record type terminal.  Likewise, my original LV7.1 code recompiled in LV8 often generates error 116 (unflatten or byte stream read operation failed due to corrupt, unexpected, or truncated data) or error 4 (end of file encountered) when randomly accessing records in the LV7 datalog files, presumably due to changes made to the datalog file structure in LV8.  I recall one time when a dialog box popped up asking if I would like to convert the file to LV8 format.  Since this was a file currently in use on the server by LV7.1 clients, I had to reply no.  With copies of the datalog files now on my hard drive ready for conversion, I haven't seen the conversion dialog box pop up again.
    How do I convert the LV7.1 datalog files to LV8 format?
    Thanks,
    Larry

    Good afternoon Larry,
    Thanks for posting! 
    The Datalog file support in LabVIEW has changed, but the underlying
    principles of the technology remains the same. 
    Converting to the new format should just involve converting a few VIs to the new Datalog-specific versions.  As you can see, the new Datalog VIs appear in
    their own sub palette in 8 which will help keep things simple.
    Before we address the concerns with the errors, let’s first
    make sure that the code has been properly converted. 
    To convert your VI to the new format:
    1)      Replace
    the Open File VI from LabVIEW 7 with an “Open/Create/Replace Datalog” VI in LabVIEW
    8.  Keep your type constant or control
    wired to the “Datalog Type” input.
    2)      Replace
    any “Write File” VIs in LabVIEW 7 with “Write
    Datalog” and triple check that your data matches the datatype wired into the
    open exactly.
    3)      Replace
    any “Seek” VIs with “Set Datalog Position”.  The input to this VI is the number of records
    to advance (check the mode set by the “from” parameter).
    4)      Replace
    any Reading VIs with the corresponding “Read Datalog” VI.
    I suspect that if you are receiving errors saying that the
    end of file has been encountered it is a result of a bad input to the “set Datalog
    position” VI.  I attached a basic example
    of writing a Datalog file in LabVIEW 8, and reading the results.  The rest of the functions in the new Datalog palette
    should be pretty straightforward. 
    Does this help?  I
    would be more than happy to answer any other questions on this if you need any
    additional clarification, or if this response does not address your question.
    Travis M
    LabVIEW R&D
    National Instruments
    Attachments:
    Datalog8.zip ‏30 KB

  • Do you copyemail from a PC running windows live mail? I have attempted to use Thunderbird and was successful in converting the live mail files to Mbox format but when I tried to import these files to the Mac only one message from each file was shown.

    I am having a problem trying to migrate some old email messages from a PC running Windows live mail.
    I downloaded Thunderbird to the PC and imported the email messages and folders into Thunderbird and was able to create Mbox files for all the folders and messages. I  copied these files to a usb stick and then tried to export the folders and messages to my iMac running Lion. It appeared  to copy the folders to the Mac but only one message per folder was placed on the computer. Does anyone have any ideas on how I should proceed to copy these email messages over? Thanks.

    I am having a problem trying to migrate some old email messages from a PC running Windows live mail.
    I downloaded Thunderbird to the PC and imported the email messages and folders into Thunderbird and was able to create Mbox files for all the folders and messages. I  copied these files to a usb stick and then tried to export the folders and messages to my iMac running Lion. It appeared  to copy the folders to the Mac but only one message per folder was placed on the computer. Does anyone have any ideas on how I should proceed to copy these email messages over? Thanks.

  • How to convert VCD files into readable format on iDVD, iMovie, DVD player

    I found a bunch of old VCDs that I want to convert so that I can use them on iDVD, iMovie. What is the best free converter and would appreciate any tips as to the best way to reduce any loss of resolution. I tried last year converting thru mpeg streamclip and the movie came out pixelated in .mov.

    ffmpeg might be very difficult to install and use, but not FFMpegX. FFMpegX takes ffmpeg, adds a very simple Mac OS X UI on top, and packages it as an application bundle. No files to put in strange places, and simple to use.
    I highly recommend it. It comes preconfigured with setting for common file formats and automatically recognizes the input format. You can simply tell it to convert a directory of files from whatever format they were in to H.264 QuickTime movies and it'll do it.

  • Help converting old pagemaker mac files

    Have a set of old pagemaker for mac files for a publication (text book - total of 34 chapters, roughly 1,000 pages).  Do not know which version of pagemaker was used.  Original publisher has gone out of business, but do have original source files.  Would like to convert the set of files to a format for use in newer adobe tools - framemaker or indesign so we can do updates and publish again.  Looking for someone to do this conversion, please.

    If I were you, I would start by downloading the trial version of PageMaker 7 and see if I can open the files with that. If they open, the rest should be easy and you could complete your conversion to version 7 in the 30 days trial period, saving yourself time and money. The new files could be afterwards opened with InDesign, probably not completely faultlessly, but...

  • Converting MIDI and WMA files

    On another computer with an older version of iTunes, I was able to convert MIDI and WMA files to other formats including AAC and MP3. But on my own computer which has the latest version of iTunes, it can't convert the formats anymore. I can an "unknown error (-50)" message. What is wrong?
      Windows XP Pro  

    I happened across this article today playing around with RSS feeds.
    You probably could have found it too, if you did a search on "MIDI".
    iTunes: MIDI files cannot be converted in iTunes 6.0.3 and 6.0.4
    http://docs.info.apple.com/article.html?artnum=303429

  • How to I convert all my music files from WVA to mp3

    Need to convert all my music files from wva format to mp3 format without doing each one individually.

    Edit > Select All

  • How can I convert the old AppleWorks files into a modern useable format?

    I've been using Mac computers for many years. The most important application (to me) was AppleWorks. But now I have learned that if I upgrade
    to Lion all my Appleworks files will be lost.  I have searched in many places for the "How to convert AppleWorks files to some format that WILL
    be supported by Apple.  I see no information on the Apple website and when I speak to a support person, I am always told that AppleWorks is
    so very old, it was not included in their training so they cannot tell me anything.  The little bits of advice I did get caused all my 20,000 AppleWorks
    files to be moved into my LaCie terrabyte external storage file, and at the same time the old files remain in my Macintosh Hard Drive. But in both
    places, those files cannot be read any more, and the nicely organized work I had done, was all gone. I mean - my AppleWorks files were always
    grouped by folders into special interest sections.  Now those folders don't exist and everything is in disarray - and unreadable. The titles of each
    file is now greyed out.  I have tried
    to make the transfer in Bento3 but mostly in iWork06.  I was told by Apple staff NOT to buy a higher iWork such as 09 because they are too
    far removed from the old AppleWorks to be able to do anything with it.  So I've stuck to iWork06 with no success.  Also, I went to my favorite
    privately owned Apples store and found all their instruction manuals and DVD application files MISSING. Their shelves are empty. I was told
    the new way is to order off the internet but....I'd far rather go into a shop and see all they offer for sale.  If I had gone there to buy ONE item,
    I'd drive away with THREE items, because getting my hands on items was the important way to understand what the value and purpose
    of that item is.
    To summarize: I have installed iWorks06 with no written information about it.  I have iWork08 with an instruction book which never never
    mentions AppleWorks, so I have not installed iWork08.  I have Bento3 installed, but no instruction book.  So I haven't learned or tried anything
    because it too never speaks of AppleWorks transfer.  Some of my AppleWorks files are extremely important to me. Not just personal or
    social but BUSINESS!  I won't be able to answer the tax man should he come a-knocking on my door.   HELP!!

    So what kinds of files are they? Word processing docs, from the painting Appleworks app, or spreadsheets?
    This is how I've handled it:
    Anything word processing: should be able to import them (drag them in or import) into Pages. Worked here.
    Spreadsheets: Used File > Open to open an AW spreadsheet. Needs a few adjustments, but I was able to tailor Numbers to get my spreadsheets the way I wanted them. Just experimented for a while with a non-essential spreadsheet until I figured out what to do.
    Painting: That is the one I used the most (and continue to do so): Cannot be read by any iWork. If your doc is a finished product, simply save it as a .pdf or .jpg and then you can drag it into Pages. If it is not, then you are out of luck. I am keeping a partition with a bootable Snow Leopard system with Appleworks on it in order to be able to keep creating my stuff because I've not been able to find a somewhat equal substitute.
    So, keeping SL on a partition and/or an external drive is one option if necessary.

  • Can Adobe Distiller be used for converting all pro/e (3D -2D)  files to pdf format?

    Can Adobe Distiller be used for converting all pro/e (3D -2D)  files to pdf format?

    Acrobat Distiller Server converts Postscript to PDF.

  • How can i convert a window media player file into a format playable on ipod

    hey guys can you tell me how can i convert an widdow media player file into a format that can be played on my ipod, i used videora ipod converter but it can't convert the window media player file

    the program you show change wma to mp3, but the mp3 file can't be understanded by the iPod, how can i change a wma file to a format understanded by the Ipod?

  • How can I convert the ITHMB photo files to PC readable format like JPEG?

    How can I convert the ITHMB photo files on my new Iphone 4s to a PC readable format like JPEG

    Look at the link and follow instructions to convert the file taken from a different thread in this forum:
    https://discussions.apple.com/thread/2640386?start=0&tstart=0

  • How to convert FLV and F4V files to other media formats

    How to convert FLV and F4V files to other media formats
    Nowadays, every one can download their favorite videos from video sharing websites like YouTube, Hulu, MySpace, Google Video, metacafe, Yahoo! Video, Reuters.com and so on at will. However, these video files we got are usually in the format of FLV, or F4V, which are not workable by most portable devices, or some video players and video editors on our PC. With the intention of solving these problems, this guide will show you how to convert FLV and F4V files to other video and audio formats in detail.
    1. Download, install and run Pavtube FLV Converter
    As soon as you run this program, the following wine red interface will show up:
    2. Add files, set output format and destination folder
    Input FLV and F4V files to this program by clicking on “Add” button, and select a format as the output format in the drop-down list of “Format”, meanwhile, you can press the output folder to specify the destination folder or just use the path set by default. Moreover, “merge into one file” enables you to combine multiple FLV and F4V files to be as a single file, if you have this needs, just tick it.
    3. Set advanced settings
    Click “Settings” button, the following interface will pop up. You can change the parameters like screen size, bit rate, frame rate, sample rate, etc. on it to optimize the output quality or compress file size.
    4. Convert
    After all settings are done, you can press “Convert” button to start transferring, and then the following window will show you the conversion info in detail. According to the info you can manage your time and disk space properly.
    Pavtube FLV Converter can definitely complete the conversion at a swift speed with excellent quality; also it adopts an advanced audio-video sync technology, so that audio and video match very well in the resulted files. Therefore you need not worry about these issues.
    Useful tips:
    Free online FLV downloader:
    www.convertdirect.com
    http://vixy.net/
    http://www.videoconverterdownload.com/online-free-flv-converter.html
    http://www.flv2mp3.com/
    http://www.mediaconverter.org/
    http://2conv.com/
    http://online.movavi.com/
    http://www.youconvertit.com/
    http://www.playtube.com/
    http://www.convert.net/

    Flip4Mac

  • When I convert a pdf file to word format, it show the error "Save As failed to process this document

    Hi,
    I have just upgrade the creative cloud CC version and upgrade the acrobat pro to XI version.
    when I convert a pdf file to word format, it show the error "Save As failed to process this document. No file was created."
    Actually, I have delete the image, use other pdf file and download a sample pdf file to test it. Same error is shown. I have try all the other format , like the excel, rtf, text, powerpoint, still same thing happen.
    Please show me what else I can do to fix this problem.
    Thx.
    Alfred Li

    alfredadli wrote:
    Please show me what else I can do to fix this problem.
    Fisrt step would be to ask in the proper forum.
    http://forums.adobe.com/community/acrobat

  • Converting files into pdf format in java

    Hi all,
    How can we convert a file into PDF format in java?My application does the
    file upload, and I need the files to be converted into PDF format.
    The uploaded file can be of any type. How can I do this?
    Please give me some help.
    Thanks and regards,
    Sandeep.

    >
    How can we convert a file into PDF format in java?My application does the
    file upload, and I need the files to be converted into PDF format.
    The uploaded file can be of any type. ...>1) Write a class that will intelligently render a file of any type..
    2) ... (well, do '1' first, then after getting your Nobel prize for AI, come back and we'll talk)
    >
    Please give me some help.>Please review your requirement.
    BTW
    - PDF sucks. It is designed for printing, and I (for one) don't want to kill more trees, and have no printer.
    - This subject (convert file to PDF) has been discussed on the forums a bazillion times. Did you search the forums before asking your two (very closely related) questions?

  • Convert the flat file to xml format.

    hi,
    I need to write a interface program in the R/3  to pull the flat file data from the unix application server and do some manipulation and place back into the unix application server in XML format, From the unix box XML file taken by the XI server.
    pls give me some idea to convert the flat file to XML format, through any function module or any other logic is there...
    with regards,
    Thambee.

    Hi Thambe
    in addition to the above posts
    Program to convert flat file to XML file.
    please download tool from this link:
    http://www.download.com/Stylus-Studio-2008-XML-Enterprise-Suite/3000-7241_4-10399885.html?part=dl-StylusStu&subj=dl&tag=button&cdlpid=10399885
    how to use:
    http://www.stylusstudio.com/learn_convert_to_xml.html
    http://www.sap-img.com/abap/sample-xml-source-code-for-sap.htm
    Flat file to XML
    CONVERTION OF FLAT FILE TO XML : NO OUT PUT FOUND
    Converting Idoc flat file representation to XML
    how to convert flat file into IDOC-XML
    Thanks
    sandeep sharma
    PS ; if helpful kindly reward points

Maybe you are looking for

  • Unit testing, integration and functional testing

    Hello all, I would like to know the difference between Unit testing, integration and functional testing. And also what are the testing tools that are more commonly used? Thanks, Maxx

  • Applications stuck loading.

    Four applications on my iPod Touch are stuck "loading." What I mean is that I downloaded them off of the app store through the iPod a day ago, and since then they've just sat there with their loading bars empty, with "Waiting" underneath them. I can'

  • MM : Stock Transfer Invoice Change

    Hi ! For Stock Transfer from one plant to another we first make a STI, then Outbound Delivery created through VL10B, then finally make the Post Goods Issue through VL02N. My problem is that even after this process is completed, the system allows to m

  • Tabbed selection screen problem.

    Hi expert, I need some help in creating my selection screen. Right now i'm creating a tabbed selection screen as the code below follows. PARAMETERS: p_test AS CHECKBOX USER-COMMAND testrun DEFAULT 'X'. SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREE

  • Recommended Dimension language code approach matching SEO/ISO standards?

    Hi All, I noted that some language codes are alluded to in the developer guide for configuring Dimensions, but are not listed in their entirity. - en_US (US English) - de_DE (German) - de_CH (Swiss German) - de_AT (Austrian German) Is there a defined