Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4000624
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:48:16+00:00 2026-05-20T07:48:16+00:00

I am generating a valid iPhone Configuration XML Profile and delivering it via a

  • 0

I am generating a valid iPhone Configuration XML Profile and delivering it via a Rails page.

I am trying to figure out how to programmatically sign the XML file with an x509 certificate so that the iPhone recognizes it as a signed profile

This is a good tutorial about what’s involved in signing an iPhone Config Profile
http://www.rootmanager.com/iphone-ota-configuration/iphone-ota-setup-with-signed-mobileconfig.html

Specifically, doing this on the command line would sign the unsigned file company.mobileconfig

openssl smime -sign -in company.mobileconfig -out signed.mobileconfig -signer server.crt -inkey server.key -certfile cert-chain.crt -outform der -nodetach

What would the equivalent command be in Ruby on Rails, assuming I have the XML file in a string? I can find alot of documentation about serving content over a SSL connection with rails, but not alot about signing arbitrary content before delivery.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T07:48:17+00:00Added an answer on May 20, 2026 at 7:48 am

    Below lines of code will sign the iPhone configuration XML Profile.

    ssl_key_str = File.read("/path/to/private.key”)
    ssl_key = OpenSSL::PKey::RSA.new(ssl_key_str)
    
    ssl_cert_str = File.read("/path/to/certificate.crt”) 
    ssl_cert = OpenSSL::X509::Certificate.new(ssl_cert_str)
    
    profile = File.read("/path/to/profile.mobileconfig")
    
    signed_profile = OpenSSL::PKCS7.sign(ssl_cert, ssl_key, profile, [], OpenSSL::PKCS7::BINARY)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying to figure out why this isn't valid (according to VS2008). //Global
I have a program that is generating Xml Files from data out of a
I'm generating some XML documents and when it comes to the address part I
I'm generating some xml files that needs to conform to an xsd file that
I'm generating a ton of XML that is to be passed to an API
I'm generating a JavaScript alert with following code in C# .NET page: Response.Write(<script language=JavaScript>
From my VB application I am generating XML document based on data fetched from
I'm generating a large amount of XML documents from a set of values in
I'm looking for a best practice/standard pattern for generating feeds in Rails 3. Is
While generating charts using RS 2008 betas, RC0 and such., I never specified any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.